From a009e53049da27966cb3c32e7b0a3094ea320aef Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 22 Aug 2009 00:02:37 -0500 Subject: [PATCH] *Do not allow players to use vehicles to go further than 1st boss in Ulduar. --HG-- branch : trunk --- src/game/Player.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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