mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Core/Misc: Rename UNIT_STAT_* enums to UNIT_STATE_*
This commit is contained in:
@@ -1604,7 +1604,7 @@ SpellCastResult SpellInfo::CheckTarget(Unit const* caster, Unit const* target, b
|
||||
}
|
||||
|
||||
// not allow casting on flying player
|
||||
if (target->HasUnitState(UNIT_STAT_IN_FLIGHT))
|
||||
if (target->HasUnitState(UNIT_STATE_IN_FLIGHT))
|
||||
return SPELL_FAILED_BAD_TARGETS;
|
||||
|
||||
if (TargetAuraState && !target->HasAuraState(AuraStateType(TargetAuraState), this, caster))
|
||||
|
||||
Reference in New Issue
Block a user