Core/Entities: Port some refactors from f1986c6aafdf2457902a7a4cc7acc903cbbdc7bb
This commit is contained in:
1 parent
6fc5bfcd08
commit
29fddba8fd
5 files changed
+160
-150
No files matched your search
@@ -7702,6 +7702,14 @@ void Player::_ApplyWeaponDamage(uint8 slot, ItemTemplate const* proto, ScalingSt
|
||||
UpdateDamagePhysical(attType);
|
||||
}
|
||||
|
||||
SpellSchoolMask Player::GetMeleeDamageSchoolMask(WeaponAttackType attackType /*= BASE_ATTACK*/) const
|
||||
{
|
||||
if (Item const* weapon = GetWeaponForAttack(attackType, true))
|
||||
return SpellSchoolMask(1 << weapon->GetTemplate()->GetDamageType());
|
||||
|
||||
return SPELL_SCHOOL_MASK_NORMAL;
|
||||
}
|
||||
|
||||
void Player::CastAllObtainSpells()
|
||||
{
|
||||
for (uint8 slot = INVENTORY_SLOT_ITEM_START; slot < INVENTORY_SLOT_ITEM_END; ++slot)
|
||||
|
||||
Reference in new issue
Block a user