aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnubisss <none@none>2009-07-22 01:06:30 +0200
committerAnubisss <none@none>2009-07-22 01:06:30 +0200
commit6718104016c9404437722b55af69b21b56388738 (patch)
tree0891dd59e758bbf84c24899360ae7c2dc5ff6159 /src
parenta00473d79510f80ae1fd6b4ed882d0e696c22659 (diff)
*Dont allow player to use a flypoint if the player stunned or rooted.
*This fix the bug that eg.: player cast Ice Block(45438) and click on a flypoint and INSTANTLY teleported to the flypoint. :) --HG-- branch : trunk
Diffstat (limited to 'src')
-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);