diff options
| author | QAston <none@none> | 2009-08-04 19:28:31 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-08-04 19:28:31 +0200 |
| commit | d95e9c1027380f93b045e2fdea400256a0214860 (patch) | |
| tree | 022925343ff003663ff2e93185ce877e9dca007e /src/game/SpellAuras.cpp | |
| parent | 1d7375c545e881a12d12f633e0387695b327c432 (diff) | |
*Fix Gargoyle feeding behaviour - original patch by thenecromancer.
*Add SPELL_TARGET_TYPE_CONTROLLED for spell_script_target table for fast search of units(grid search skipped) and to prevent applying effects to not owned summons
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
| -rw-r--r-- | src/game/SpellAuras.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 6e893611304..aa8c2014b7a 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -2813,6 +2813,14 @@ void AuraEffect::HandleAuraDummy(bool apply, bool Real, bool changeAmount) return; } break; + case SPELLFAMILY_DEATHKNIGHT: + // Summon Gargoyle ( will start feeding gargoyle ) + if(GetId()==61777) + { + m_target->CastSpell(m_target,m_spellProto->EffectTriggerSpell[m_effIndex],true); + return; + } + break; default: break; } @@ -7214,8 +7222,9 @@ void AuraEffect::PeriodicDummyTick() return; } // Summon Gargoyle -// if (spell->SpellFamilyFlags & 0x0000008000000000LL) -// return; + // Being pursuaded by Gargoyle - AI related? + // if (spell->SpellFamilyFlags[1] & 0x00000080) + // break; // Death Rune Mastery // if (spell->SpellFamilyFlags & 0x0000000000004000LL) // return; @@ -7612,6 +7621,7 @@ void AuraEffect::HandleAuraCloneCaster( bool Apply, bool Real , bool /*changeAmo { if (!Real) return; + if (Apply) { Unit * caster = GetCaster(); |
