Core/Items: Refactored ItemTemplate

This commit is contained in:
Shauren
2014-12-21 13:35:43 +01:00
parent 77dc1b00db
commit 6dbb516b65
52 changed files with 968 additions and 1435 deletions
+1 -1
View File
@@ -406,7 +406,7 @@ void Player::CalculateMinMaxDamage(WeaponAttackType attType, bool normalized, bo
{
float weaponSpeed = BASE_ATTACK_TIME / 1000.f;
if (Item* weapon = GetWeaponForAttack(BASE_ATTACK, true))
weaponSpeed = weapon->GetTemplate()->Delay / 1000;
weaponSpeed = weapon->GetTemplate()->GetDelay() / 1000;
if (GetShapeshiftForm() == FORM_CAT)
{