mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 21:56:22 +00:00
feat(Core/Scripting): Add new hook OnUnitSetShapeshiftForm (#21235)
This commit is contained in:
@@ -21324,6 +21324,12 @@ bool Unit::CanRestoreMana(SpellInfo const* spellInfo) const
|
||||
return false;
|
||||
}
|
||||
|
||||
void Unit::SetShapeshiftForm(ShapeshiftForm form)
|
||||
{
|
||||
SetByteValue(UNIT_FIELD_BYTES_2, 3, form);
|
||||
sScriptMgr->OnUnitSetShapeshiftForm((Unit*)this, form);
|
||||
}
|
||||
|
||||
bool Unit::IsInDisallowedMountForm() const
|
||||
{
|
||||
if (SpellInfo const* transformSpellInfo = sSpellMgr->GetSpellInfo(getTransForm()))
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user