aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-22 00:02:37 -0500
committermegamage <none@none>2009-08-22 00:02:37 -0500
commita009e53049da27966cb3c32e7b0a3094ea320aef (patch)
tree4e866c2e9fe953b40cfb6442a70c15cb54009eba /src
parent470ff1c556db7d9bc8f60a53e6cbef0fc70523e5 (diff)
*Do not allow players to use vehicles to go further than 1st boss in Ulduar.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 3e3d4bff7be..d23ee9dc7a4 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -20247,6 +20247,18 @@ void Player::UpdateAreaDependentAuras( uint32 newArea )
if(itr->second->autocast && itr->second->IsFitToRequirements(this,m_zoneUpdateId,newArea))
if( !HasAura(itr->second->spellId) )
CastSpell(this,itr->second->spellId,true);
+
+ if(newArea == 4273 && m_Vehicle && GetPositionX() > 400) // Ulduar
+ {
+ switch(m_Vehicle->GetEntry())
+ {
+ case 33062:
+ case 33109:
+ case 33060:
+ m_Vehicle->Dismiss();
+ break;
+ }
+ }
}
uint32 Player::GetCorpseReclaimDelay(bool pvp) const