mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-28 22:45:55 +00:00
refactor(Core): use the WeaponAttackType enum (#23457)
This commit is contained in:
@@ -1824,7 +1824,7 @@ SpellCastResult SpellInfo::CheckTarget(Unit const* caster, WorldObject const* ta
|
||||
{
|
||||
if (Player const* player = unitTarget->ToPlayer())
|
||||
{
|
||||
if (player->GetWeaponForAttack(WeaponAttackType(BASE_ATTACK + i), true))
|
||||
if (player->GetWeaponForAttack(WeaponAttackType(i), true))
|
||||
{
|
||||
valid = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user