Fix crash in AuraEffect::HandleShapeshiftBoosts
Add check to Spell::EffectSanctuary before casting (ensuring all appearances of "(Player *)" (whitespace incl.) are correct) --HG-- branch : trunk
This commit is contained in:
@@ -2509,10 +2509,13 @@ void AuraEffect::HandleShapeshiftBoosts(Unit * target, bool apply) const
|
||||
target->RemoveAurasDueToSpell(spellId2);
|
||||
|
||||
// Improved Barkskin - apply/remove armor bonus due to shapeshift
|
||||
if (target->ToPlayer()->HasSpell(63410) || target->ToPlayer()->HasSpell(63411))
|
||||
if (Player *pl=target->ToPlayer())
|
||||
{
|
||||
target->RemoveAurasDueToSpell(66530);
|
||||
target->CastSpell(target,66530,true);
|
||||
if (pl->HasSpell(63410) || pl->HasSpell(63411))
|
||||
{
|
||||
target->RemoveAurasDueToSpell(66530);
|
||||
target->CastSpell(target,66530,true);
|
||||
}
|
||||
}
|
||||
|
||||
Unit::AuraApplicationMap& tAuras = target->GetAppliedAuras();
|
||||
|
||||
Reference in New Issue
Block a user