Skip to content

Commit

Permalink
ZG: Revert renataki commit and fix it based on data
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Jul 5, 2024
1 parent fee0d75 commit dcf85d4
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ EndScriptData

enum
{
SPELL_THOUSAND_BLADES = 24767,
SPELL_THOUSAND_BLADES = 24649,
SPELL_VANISH = 24699,
SPELL_GOUGE = 24698,
SPELL_TRASH = 3391,
Expand Down Expand Up @@ -90,10 +90,14 @@ struct boss_renatakiAI : public CombatAI
}
};

// 24649 - Thousand Blades
struct ThousandBladesRenataki : public SpellScript
{
void OnEffectExecute(Spell* spell, SpellEffectIndex effIdx) const override
{
if (spell->m_IsTriggeredSpell) // only initial normal cast
return;

if (effIdx != EFFECT_INDEX_1)
return;

Expand All @@ -105,7 +109,7 @@ struct ThousandBladesRenataki : public SpellScript
std::shuffle(selectedTargets.begin(), selectedTargets.end(), *GetRandomGenerator());
selectedTargets.resize(9);
for (Unit* target : selectedTargets)
caster->CastSpell(target, SPELL_THOUSAND_BLADES, TRIGGERED_OLD_TRIGGERED);
caster->CastSpell(target, SPELL_THOUSAND_BLADES, TRIGGERED_OLD_TRIGGERED | TRIGGERED_INSTANT_CAST);
}
};

Expand Down

2 comments on commit dcf85d4

@insunaa
Copy link
Contributor

@insunaa insunaa commented on dcf85d4 Jul 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair enough

@killerwife
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries, vanilla often proves we know nothing :D

Please sign in to comment.