mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 21:26:23 +00:00
* refactor(creature_template): closes #1181 * chore: improve code readability
This commit is contained in:
committed by
Viste(Кирилл)
parent
e8d73a553f
commit
7c7c5eb203
@@ -694,8 +694,8 @@ bool Guardian::InitStatsForLevel(uint8 petlevel)
|
||||
SetModifierValue(UNIT_MOD_ARMOR, BASE_VALUE, float(petlevel*50));
|
||||
|
||||
uint32 attackTime = BASE_ATTACK_TIME;
|
||||
if (m_owner->getClass() != CLASS_HUNTER && cinfo->baseattacktime >= 1000)
|
||||
attackTime = cinfo->baseattacktime;
|
||||
if (m_owner->getClass() != CLASS_HUNTER && cinfo->BaseAttackTime >= 1000)
|
||||
attackTime = cinfo->BaseAttackTime;
|
||||
|
||||
SetAttackTime(BASE_ATTACK, attackTime);
|
||||
SetAttackTime(OFF_ATTACK, attackTime);
|
||||
|
||||
Reference in New Issue
Block a user