feat(Core/Scripting): Add new hook OnUnitSetShapeshiftForm (#21235)

This commit is contained in:
iThorgrim
2025-02-04 07:41:29 +01:00
committed by GitHub
parent 02a903b16f
commit 054018232c
5 changed files with 15 additions and 4 deletions

View File

@@ -1868,10 +1868,7 @@ public:
// ShapeShitForm (use by druid)
[[nodiscard]] ShapeshiftForm GetShapeshiftForm() const { return ShapeshiftForm(GetByteValue(UNIT_FIELD_BYTES_2, 3)); }
void SetShapeshiftForm(ShapeshiftForm form)
{
SetByteValue(UNIT_FIELD_BYTES_2, 3, form);
}
void SetShapeshiftForm(ShapeshiftForm form);
bool IsAttackSpeedOverridenShapeShift() const;
[[nodiscard]] bool IsInFeralForm() const
{