Fix blocked buffs from failing

When a buff is blocked it should just fail to be applied
instead of interrupting. Mana should also be eaten.
This commit is contained in:
Michael Cook
2013-12-14 16:42:12 -05:00
parent 466f541798
commit 48db481fbb
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -3083,14 +3083,14 @@ bool Mob::SpellOnTarget(uint16 spell_id, Mob* spelltar, bool reflect, bool use_r
if(spelltar->IsBlockedBuff(spell_id))
{
mlog(SPELLS__BUFFS, "Spell %i not applied to %s as it is a Blocked Buff.", spell_id, spelltar->GetName());
return false;
return true;
}
if(spelltar->IsPet() && spelltar->GetOwner() && spelltar->GetOwner()->IsBlockedPetBuff(spell_id))
{
mlog(SPELLS__BUFFS, "Spell %i not applied to %s (%s's pet) as it is a Pet Blocked Buff.", spell_id, spelltar->GetName(),
spelltar->GetOwner()->GetName());
return false;
return true;
}
}