mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[9458] Add exception for spell 51912 and then trigger 45668 as expected
Also remove commented code for spell 45668 Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
530be51dc5
commit
09b4acc53e
3 changed files with 11 additions and 5 deletions
|
|
@ -5378,14 +5378,12 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
|||
unitTarget->CastSpell(unitTarget, 44870, true);
|
||||
break;
|
||||
}
|
||||
/* Spell 51912 that trigger this need correction before this can work.
|
||||
Some additional research also seem to be needed + adjustment, this is mostly place holder for spells used.
|
||||
case 45668: // Ultra-Advanced Proto-Typical Shortening Blaster
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
|
||||
return;
|
||||
|
||||
if (roll_chance_i(50)) // chance unknown, using 50
|
||||
if (roll_chance_i(25)) // chance unknown, using 25
|
||||
return;
|
||||
|
||||
static uint32 const spellPlayer[5] =
|
||||
|
|
@ -5410,7 +5408,7 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
|||
unitTarget->CastSpell(unitTarget, spellTarget[urand(0,4)], true);
|
||||
|
||||
return;
|
||||
}*/
|
||||
}
|
||||
case 46203: // Goblin Weather Machine
|
||||
{
|
||||
if (!unitTarget)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue