mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[9182] Replace 0 with NULL in a few CastSpell calls (removed where not needed)
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
0d6b7f144c
commit
dbf0fafbfe
6 changed files with 15 additions and 15 deletions
|
|
@ -500,7 +500,7 @@ void Spell::EffectSchoolDMG(uint32 effect_idx)
|
|||
int chance = (*i)->GetSpellProto()->CalculateSimpleValue(1);
|
||||
if (roll_chance_i(chance))
|
||||
// Mind Trauma
|
||||
m_caster->CastSpell(unitTarget, 48301, true, 0);
|
||||
m_caster->CastSpell(unitTarget, 48301, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -1582,9 +1582,9 @@ void Spell::EffectDummy(uint32 i)
|
|||
return;
|
||||
}
|
||||
if (m_caster->IsFriendlyTo(unitTarget))
|
||||
m_caster->CastSpell(unitTarget, heal, true, 0);
|
||||
m_caster->CastSpell(unitTarget, heal, true);
|
||||
else
|
||||
m_caster->CastSpell(unitTarget, hurt, true, 0);
|
||||
m_caster->CastSpell(unitTarget, hurt, true);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
|
|
@ -1800,9 +1800,9 @@ void Spell::EffectDummy(uint32 i)
|
|||
}
|
||||
|
||||
if (m_caster->IsFriendlyTo(unitTarget))
|
||||
m_caster->CastSpell(unitTarget, heal, true, 0);
|
||||
m_caster->CastSpell(unitTarget, heal, true);
|
||||
else
|
||||
m_caster->CastSpell(unitTarget, hurt, true, 0);
|
||||
m_caster->CastSpell(unitTarget, hurt, true);
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue