[7085] Restore work 12975 after client switch, patch by MaS0n

Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
DiSlord 2009-01-14 21:49:11 +03:00
parent 09659a0377
commit 31722c1c0c
2 changed files with 16 additions and 12 deletions

View file

@ -721,12 +721,6 @@ void Spell::EffectDummy(uint32 i)
m_caster->CastCustomSpell(unitTarget, 12721, &deepWoundsDotBasePoints0, NULL, NULL, true, NULL);
return;
}
case 12975: //Last Stand
{
int32 healthModSpellBasePoints0 = int32(m_caster->GetMaxHealth()*0.3);
m_caster->CastCustomSpell(m_caster, 12976, &healthModSpellBasePoints0, NULL, NULL, true, NULL);
return;
}
case 13120: // net-o-matic
{
if(!unitTarget)
@ -1276,13 +1270,23 @@ void Spell::EffectDummy(uint32 i)
m_caster->SetPower(POWER_RAGE,0);
return;
}
if(m_spellInfo->Id==21977) //Warrior's Wrath
switch(m_spellInfo->Id)
{
if(!unitTarget)
// Warrior's Wrath
case 21977:
{
if(!unitTarget)
return;
m_caster->CastSpell(unitTarget,21887,true); // spell mod
return;
m_caster->CastSpell(unitTarget,21887,true); // spell mod
return;
}
// Last Stand
case 12975:
{
int32 healthModSpellBasePoints0 = int32(m_caster->GetMaxHealth()*0.3);
m_caster->CastCustomSpell(m_caster, 12976, &healthModSpellBasePoints0, NULL, NULL, true, NULL);
return;
}
}
break;
case SPELLFAMILY_WARLOCK: