Add possibility to ignore instant spells when checking if a spell is currently being casted. Fixes issue #2227

--HG--
branch : trunk
This commit is contained in:
Shocker
2010-08-26 20:40:18 +03:00
parent 30d31ca40a
commit 23d1267689
3 changed files with 7 additions and 7 deletions
@@ -5581,10 +5581,8 @@ void AuraEffect::HandleAuraDummy(AuraApplication const * aurApp, uint8 mode, boo
if (target->GetTypeId() != TYPEID_PLAYER)
return;
// ..while they are casting
if (target->IsNonMeleeSpellCasted(false, false, true))
{
if (target->IsNonMeleeSpellCasted(false, false, true, false, true))
if (AuraEffect * aurEff = caster->GetAuraEffect(SPELL_AURA_ADD_FLAT_MODIFIER, SPELLFAMILY_WARRIOR, 2775, 0))
{
switch (aurEff->GetId())
{
// Unrelenting Assault, rank 1
@@ -5596,8 +5594,6 @@ void AuraEffect::HandleAuraDummy(AuraApplication const * aurApp, uint8 mode, boo
target->CastSpell(target,64850,true,NULL,aurEff);
break;
}
}
}
}
switch(GetId())
{