Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented OnHeartbeat AuraScript hook and refactored an aurascript to use it as example #29945

Merged
merged 3 commits into from Apr 27, 2024

Conversation

Ovahlord
Copy link
Contributor

Changes proposed:

  • OnHeartbeat is now available as global AuraScript hook
  • Amalgam's Seventh Spine is now using said hook to update its aura

Tests performed:

  • tested ingame

@@ -4345,7 +4337,7 @@ class spell_item_amalgams_seventh_spine : public AuraScript
if (target->GetPrimarySpecialization() != spec)
target->RemoveAurasDueToSpell(aura);
else if (!target->HasAura(aura))
target->CastSpell(target, aura, aurEff);
target->CastSpell(target, aura, GetEffect(EFFECT_0));
Copy link
Contributor

Choose a reason for hiding this comment

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

Would we not need to validate this effect since OnHeartbeat is not really hooking any and implicitly validating any?

@Shauren Shauren merged commit 55ce5b1 into TrinityCore:master Apr 27, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants