changeset 13:cca898af07b4

Fixed so that modified key calls a sea turtle if you're swimming and in a flyable area
author syzler
date Sun, 10 Apr 2011 02:43:29 +0000
parents 6b227fa0697e
children b1e344c17ab5
files MyLilPony.lua
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MyLilPony.lua	Sat Apr 09 03:35:59 2011 +0000
+++ b/MyLilPony.lua	Sun Apr 10 02:43:29 2011 +0000
@@ -81,17 +81,19 @@
     end
     
     -- player is in flyable area and knows how to fly here too
-    if MyLilPony.CanFlyHere() and not IsModifierKeyDown() then
+    if MyLilPony.CanFlyHere() then
         -- normal behaviour in flyable area is to call flying mount
-        if MyLilPony.CallFlyingMount() then
+        if not IsModifierKeyDown() and MyLilPony.CallFlyingMount() then
+            return;
+        elseif IsSwimming() and MyLilPony.CallAquaticMount() then
             return;
         end
     end
     
     -- player is swimming
-    if IsSwimming() and not IsModifierKeyDown() then
+    if IsSwimming() then
         -- normal behaviour while swimming is to call aquatic mount
-        if MyLilPony.CallAquaticMount() then
+        if not IsModifierKeyDown() and MyLilPony.CallAquaticMount() then
             return;
         end
     end