aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/SpellHandler.cpp')
-rw-r--r--src/game/SpellHandler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/SpellHandler.cpp b/src/game/SpellHandler.cpp
index a9a28511d0c..6a03d13bf6d 100644
--- a/src/game/SpellHandler.cpp
+++ b/src/game/SpellHandler.cpp
@@ -556,7 +556,10 @@ void WorldSession::HandleSpellClick( WorldPacket & recv_data )
}
if(unit->IsVehicle())
- _player->EnterVehicle(unit);
+ {
+ if (unit->CheckPlayerCondition(_player))
+ _player->EnterVehicle(unit);
+ }
unit->AI()->DoAction(EVENT_SPELLCLICK);
}