Mercurial > wow > mylilpony
comparison MyLilPony.lua @ 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 | 9052b32b69c3 |
children | b1e344c17ab5 |
comparison
equal
deleted
inserted
replaced
12:6b227fa0697e | 13:cca898af07b4 |
---|---|
79 return; | 79 return; |
80 end | 80 end |
81 end | 81 end |
82 | 82 |
83 -- player is in flyable area and knows how to fly here too | 83 -- player is in flyable area and knows how to fly here too |
84 if MyLilPony.CanFlyHere() and not IsModifierKeyDown() then | 84 if MyLilPony.CanFlyHere() then |
85 -- normal behaviour in flyable area is to call flying mount | 85 -- normal behaviour in flyable area is to call flying mount |
86 if MyLilPony.CallFlyingMount() then | 86 if not IsModifierKeyDown() and MyLilPony.CallFlyingMount() then |
87 return; | |
88 elseif IsSwimming() and MyLilPony.CallAquaticMount() then | |
87 return; | 89 return; |
88 end | 90 end |
89 end | 91 end |
90 | 92 |
91 -- player is swimming | 93 -- player is swimming |
92 if IsSwimming() and not IsModifierKeyDown() then | 94 if IsSwimming() then |
93 -- normal behaviour while swimming is to call aquatic mount | 95 -- normal behaviour while swimming is to call aquatic mount |
94 if MyLilPony.CallAquaticMount() then | 96 if not IsModifierKeyDown() and MyLilPony.CallAquaticMount() then |
95 return; | 97 return; |
96 end | 98 end |
97 end | 99 end |
98 | 100 |
99 MyLilPony.CallGroundMount(); | 101 MyLilPony.CallGroundMount(); |