mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7085] Restore work 12975 after client switch, patch by MaS0n
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
09659a0377
commit
31722c1c0c
2 changed files with 16 additions and 12 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue