aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-07-22 17:11:20 +0200
committerQAston <none@none>2009-07-22 17:11:20 +0200
commit8e44d673b95587251df7ed8183c8aa22f233927b (patch)
tree2286f8cfbd359f23789f63ca6ca40230f789f1f5 /src/game/Player.cpp
parent2ff21d4cefc6c871790676de9461f5bd105bde66 (diff)
parenta22a9399dd7b668628caf27516916113d8d6fd5c (diff)
*Merge.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 27014c97f76..41ed4882826 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -17583,8 +17583,8 @@ bool Player::ActivateTaxiPathTo(std::vector<uint32> const& nodes, Creature* npc
if(nodes.size() < 2)
return false;
- // not let cheating with start flight in time of logout process || if casting not finished || while in combat || if not use Spell's with EffectSendTaxi
- if(GetSession()->isLogingOut() || isInCombat())
+ // not let cheating with start flight in time of logout process || while in combat || has type state: stunned || has type state: root
+ if(GetSession()->isLogingOut() || isInCombat() || hasUnitState(UNIT_STAT_STUNNED) || hasUnitState(UNIT_STAT_ROOT))
{
WorldPacket data(SMSG_ACTIVATETAXIREPLY, 4);
data << uint32(ERR_TAXIPLAYERBUSY);