[8691] fix battleground spiritguides

they are now alive and so some spellchecks got invalid
This commit is contained in:
balrok 2009-10-20 22:35:07 +02:00
parent 20e8982075
commit ac6e13d0e3
3 changed files with 2 additions and 5 deletions

View file

@ -3930,7 +3930,7 @@ SpellCastResult Spell::CheckCast(bool strict)
if(m_spellInfo->TargetAuraStateNot && target->HasAuraState(AuraState(m_spellInfo->TargetAuraStateNot))) if(m_spellInfo->TargetAuraStateNot && target->HasAuraState(AuraState(m_spellInfo->TargetAuraStateNot)))
return SPELL_FAILED_TARGET_AURASTATE; return SPELL_FAILED_TARGET_AURASTATE;
if (IsDeathOnlySpell(m_spellInfo) && target->isAlive()) if (!m_IsTriggeredSpell && IsDeathOnlySpell(m_spellInfo) && target->isAlive())
return SPELL_FAILED_TARGET_NOT_DEAD; return SPELL_FAILED_TARGET_NOT_DEAD;
// Target aura req check if need // Target aura req check if need

View file

@ -6265,9 +6265,6 @@ void Aura::HandleSchoolAbsorb(bool apply, bool Real)
void Aura::PeriodicTick() void Aura::PeriodicTick()
{ {
if (!m_target->isAlive() != IsDeathOnlySpell(GetSpellProto()))
return;
switch(m_modifier.m_auraname) switch(m_modifier.m_auraname)
{ {
case SPELL_AURA_PERIODIC_DAMAGE: case SPELL_AURA_PERIODIC_DAMAGE:

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "8690" #define REVISION_NR "8691"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__