Compare commits

...

14 Commits

Author SHA1 Message Date
Andrew
66fd3fc912
Merge b0d2702bcf54a562ed8112c10c4e355c31296776 into f6c4164765afe447476114e632ee3d70b04a1777 2025-02-20 13:24:52 +00:00
Andrew
b0d2702bcf
Update boss_eredar_twins.cpp 2025-02-20 10:24:48 -03:00
Andrew
44c86c7f08
Update boss_eredar_twins.cpp 2025-02-20 08:32:30 -03:00
Andrew
9c4101fce9
Merge branch 'master' into tw 2025-02-19 21:05:38 -03:00
Skjalf
81b0617b8c use aura scripts 2025-02-19 21:02:49 -03:00
Skjalf
ec3c0a3c92 Revert "fix(Scripts/SunwellPlateau): Fix twin marks not applying from dots"
This reverts commit 1eafcdd7b0484791a2dfd3b152c5900643404a33.
2025-02-12 23:16:22 -03:00
Skjalf
098b3e44e5 Revert "Update boss_eredar_twins.cpp"
This reverts commit 09133d323ee91bf19c491c6531d39b8a3c99cc70.
2025-02-12 23:16:16 -03:00
Skjalf
0bddd9ced2 Revert "Update rev_1739361382506034400.sql"
This reverts commit 98247f2641a87b7e79ac448e5bd4ed6ef7a816e2.
2025-02-12 23:16:10 -03:00
Skjalf
11ba79bde9 Revert "Update boss_eredar_twins.cpp"
This reverts commit e94d92e30bb1b88fb66760c4a89efe5ca99587d9.
2025-02-12 23:15:43 -03:00
Skjalf
e94d92e30b Update boss_eredar_twins.cpp 2025-02-12 22:58:12 -03:00
Rocco Silipo
480815fc9f
Merge branch 'master' into tw 2025-02-13 01:05:52 +01:00
Skjalf
98247f2641 Update rev_1739361382506034400.sql 2025-02-12 10:39:39 -03:00
Skjalf
09133d323e Update boss_eredar_twins.cpp 2025-02-12 09:20:39 -03:00
Skjalf
1eafcdd7b0 fix(Scripts/SunwellPlateau): Fix twin marks not applying from dots 2025-02-12 08:56:43 -03:00
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,6 @@
--
DELETE FROM `spell_script_names` WHERE `ScriptName` IN ('spell_eredar_twins_handle_dark_touched_periodic', 'spell_eredar_twins_handle_flame_touched_periodic');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(45432, 'spell_eredar_twins_handle_flame_touched_periodic'),
(45271, 'spell_eredar_twins_handle_dark_touched_periodic'),
(46771, 'spell_eredar_twins_handle_flame_touched_flame_sear');

View File

@ -377,6 +377,33 @@ class spell_eredar_twins_blaze : public SpellScript
}
};
class spell_eredar_twins_handle_touch_periodic : public AuraScript
{
PrepareAuraScript(spell_eredar_twins_handle_touch_periodic);
public:
spell_eredar_twins_handle_touch_periodic(uint32 touchSpell, uint8 effIndex) : AuraScript(), _touchSpell(touchSpell), _effectIndex(effIndex) {}
bool Validate(SpellInfo const* /*spellInfo*/) override
{
return ValidateSpellInfo({ _touchSpell });
}
void OnPeriodic(AuraEffect const* /*aurEff*/)
{
GetTarget()->CastSpell(GetTarget(), _touchSpell, true);
}
void Register() override
{
OnEffectPeriodic += AuraEffectPeriodicFn(spell_eredar_twins_handle_touch_periodic::OnPeriodic, _effectIndex, SPELL_AURA_PERIODIC_TRIGGER_SPELL);
}
private:
uint32 _touchSpell;
uint32 _effectIndex;
};
class at_sunwell_eredar_twins : public OnlyOnceAreaTriggerScript
{
public:
@ -404,5 +431,8 @@ void AddSC_boss_eredar_twins()
RegisterSpellScriptWithArgs(spell_eredar_twins_apply_touch, "spell_eredar_twins_apply_flame_touched", SPELL_FLAME_TOUCHED);
RegisterSpellScript(spell_eredar_twins_handle_touch);
RegisterSpellScript(spell_eredar_twins_blaze);
RegisterSpellScriptWithArgs(spell_eredar_twins_handle_touch_periodic, "spell_eredar_twins_handle_dark_touched_periodic", SPELL_DARK_TOUCHED, EFFECT_0);
RegisterSpellScriptWithArgs(spell_eredar_twins_handle_touch_periodic, "spell_eredar_twins_handle_flame_touched_periodic", SPELL_FLAME_TOUCHED, EFFECT_2);
RegisterSpellScriptWithArgs(spell_eredar_twins_handle_touch_periodic, "spell_eredar_twins_handle_flame_touched_flame_sear", SPELL_FLAME_TOUCHED, EFFECT_0);
new at_sunwell_eredar_twins();
}