# HG changeset patch # User syzler # Date 1302403409 0 # Node ID cca898af07b463a69034a8b3b5fc5fe33df48d81 # Parent 6b227fa0697ef2b589365ef3492eadbdfe5e1b80 Fixed so that modified key calls a sea turtle if you're swimming and in a flyable area diff -r 6b227fa0697e -r cca898af07b4 MyLilPony.lua --- 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