[7195] Implement SPELL_AURA_PHASE (261) and basics of phases system work (for player/creatures/pets only)

This commit is contained in:
VladimirMangos 2009-01-27 17:00:16 +03:00
parent 700fb25407
commit 430c634fd3
7 changed files with 75 additions and 18 deletions

View file

@ -18880,20 +18880,24 @@ void Player::UpdateZoneDependentAuras( uint32 newZone )
}
// Some spells applied at enter into zone (with subzones)
// Human Illusion
// NOTE: these are removed by RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_CHANGE_MAP);
if ( newZone == 2367 ) // Old Hillsbrad Foothills
switch(newZone)
{
uint32 spellid = 0;
// all horde races
if( GetTeam() == HORDE )
spellid = getGender() == GENDER_FEMALE ? 35481 : 35480;
// and some alliance races
else if( getRace() == RACE_NIGHTELF || getRace() == RACE_DRAENEI )
spellid = getGender() == GENDER_FEMALE ? 35483 : 35482;
case 2367: // Old Hillsbrad Foothills
{
// Human Illusion
// NOTE: these are removed by RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_CHANGE_MAP);
uint32 spellid = 0;
// all horde races
if( GetTeam() == HORDE )
spellid = getGender() == GENDER_FEMALE ? 35481 : 35480;
// and some alliance races
else if( getRace() == RACE_NIGHTELF || getRace() == RACE_DRAENEI )
spellid = getGender() == GENDER_FEMALE ? 35483 : 35482;
if(spellid && !HasAura(spellid,0) )
CastSpell(this,spellid,true);
if(spellid && !HasAura(spellid,0) )
CastSpell(this,spellid,true);
break;
}
}
}