refactor(Core/Spells): Add helpers for HasAuraType (#20802)
This commit is contained in:
parent
55f6bd0972
commit
ed008a8780
41 changed files with 183 additions and 140 deletions
|
|
@ -2881,7 +2881,7 @@ class spell_item_reindeer_transformation : public SpellScript
|
|||
void HandleDummy(SpellEffIndex /* effIndex */)
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
if (caster->HasAuraType(SPELL_AURA_MOUNTED))
|
||||
if (caster->HasMountedAura())
|
||||
{
|
||||
float flyspeed = caster->GetSpeedRate(MOVE_FLIGHT);
|
||||
float speed = caster->GetSpeedRate(MOVE_RUN);
|
||||
|
|
@ -3172,7 +3172,7 @@ class spell_item_brewfest_mount_transformation : public SpellScript
|
|||
return;
|
||||
}
|
||||
|
||||
if (caster->HasAuraType(SPELL_AURA_MOUNTED))
|
||||
if (caster->HasMountedAura())
|
||||
{
|
||||
caster->RemoveAurasByType(SPELL_AURA_MOUNTED);
|
||||
uint32 spell_id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue