*Fix Glyph of Rune Tap. (To not heal caster)

--HG--
branch : trunk
This commit is contained in:
Nevan
2009-08-18 05:17:19 +02:00
parent c84d37c2c2
commit 7c2db4f2a9
+4
View File
@@ -2642,6 +2642,10 @@ void Spell::EffectHealPct( uint32 /*i*/ )
if (!caster)
return;
// Rune Tap - Party
if (m_spellInfo->Id == 59754 && unitTarget == m_caster)
return;
uint32 addhealth = unitTarget->GetMaxHealth() * damage / 100;
if(Player* modOwner = m_caster->GetSpellModOwner())
modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_DAMAGE, addhealth, this);