fix(Scripts/Items): Fix Goblin Bomb Dispenser (#10612)
* fix(Scripts/Items): Fix Goblin Bomb Dispenser * Update spell_item.cpp Fix brackets
This commit is contained in:
parent
1cce367645
commit
948911bd7a
2 changed files with 21 additions and 3 deletions
|
|
@ -3493,7 +3493,8 @@ class spell_item_eggnog : public SpellScript
|
|||
|
||||
enum GoblinBomb
|
||||
{
|
||||
SPELL_SUMMON_GOBLIN_BOMB = 13258,
|
||||
SPELL_SUMMON_GOBLIN_BOMB = 13258,
|
||||
SPELL_MALFUNCTION_EXPLOSION = 13261
|
||||
};
|
||||
|
||||
// 23134 - Goblin Bomb
|
||||
|
|
@ -3503,14 +3504,14 @@ class spell_item_goblin_bomb : public SpellScript
|
|||
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
return ValidateSpellInfo({ SPELL_SUMMON_GOBLIN_BOMB });
|
||||
return ValidateSpellInfo({ SPELL_SUMMON_GOBLIN_BOMB, SPELL_MALFUNCTION_EXPLOSION });
|
||||
}
|
||||
|
||||
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (Unit* caster = GetCaster())
|
||||
{
|
||||
caster->CastSpell(caster, SPELL_SUMMON_GOBLIN_BOMB, true, GetCastItem());
|
||||
caster->CastSpell(caster, roll_chance_i(95) ? SPELL_SUMMON_GOBLIN_BOMB : SPELL_MALFUNCTION_EXPLOSION, true, GetCastItem());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue