Jump to content

[Patch][6986] Booty bay allow mount


Guest yad02

Recommended Posts

What bug does the patch fix? What features does the patch add?

Blizzard changes in booty bay : mounts are allowed

For which repository revision was the patch created?

6985

Who has been writing this patch? Please include either forum user names or email addresses.

Except if I wrong this area allow mount since 3.0.3 (Area 35 - Booty Bay)

In Spell.cpp :

case SPELL_AURA_MOUNTED:
{
   if (m_caster->IsInWater())
       return SPELL_FAILED_ONLY_ABOVEWATER;

   if (m_caster->GetTypeId()==TYPEID_PLAYER && ((Player*)m_caster)->GetTransport())
       return SPELL_FAILED_NO_MOUNTS_ALLOWED;

   // Ignore map check if spell have AreaId. AreaId already checked and this prevent special mount spells
   if (m_caster->GetTypeId()==TYPEID_PLAYER && !sMapStore.LookupEntry(m_caster->GetMapId())->IsMountAllowed() && !m_IsTriggeredSpell && !m_spellInfo->AreaId)
       return SPELL_FAILED_NO_MOUNTS_ALLOWED;

-    if (m_caster->GetAreaId()==35)
-        return SPELL_FAILED_NO_MOUNTS_ALLOWED;
-
   ShapeshiftForm form = m_caster->m_form;
   if( form == FORM_CAT          || form == FORM_TREE      || form == FORM_TRAVEL   ||
       form == FORM_AQUA         || form == FORM_BEAR      || form == FORM_DIREBEAR ||
       form == FORM_CREATUREBEAR || form == FORM_GHOSTWOLF || form == FORM_FLIGHT   ||
       form == FORM_FLIGHT_EPIC  || form == FORM_MOONKIN   || form == FORM_METAMORPHOSIS )
          return SPELL_FAILED_NOT_SHAPESHIFT;

   break;
}

In Player.cpp

void Player::UpdateAreaDependentAuras( uint32 newArea )
{
   // remove auras from spells with area limitations
   for(AuraMap::iterator iter = m_Auras.begin(); iter != m_Auras.end()
   {
       // use m_zoneUpdateId for speed: UpdateArea called from UpdateZone or instead UpdateZone in both cases m_zoneUpdateId up-to-date
       if(!IsSpellAllowedInLocation(iter->second->GetSpellProto(),GetMapId(),m_zoneUpdateId,newArea))
           RemoveAura(iter);
       else
           ++iter;
   }

-    // unmount if enter in this subzone
-    if( newArea == 35)
-        RemoveSpellsCausingAura(SPELL_AURA_MOUNTED);
-    // Dragonmaw Illusion
-    else if( newArea == 3759 || newArea == 3966 || newArea == 3939 )
+    // Dragonmaw Illusion
+    if( newArea == 3759 || newArea == 3966 || newArea == 3939 )
   {
       if( GetDummyAura(40214) )
       {
           if( !HasAura(40216,0) )
               CastSpell(this,40216,true);
           if( !HasAura(42016,0) )
               CastSpell(this,42016,true);
       }
   }
}

if this code is not correct delete it please.

Source : http://www.wowinsider.com/2008/08/12/mounts-now-welcome-in-booty-bay/

Just to be sure, can you verify it on live server please ?

Thank you...

PS : Sorry I haven't got the lines numbers... I'm not on my own computer...

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use