mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
* refactor(creature_template): closes #1181 * chore: improve code readability
This commit is contained in:
committed by
Viste(Кирилл)
parent
e8d73a553f
commit
7c7c5eb203
@@ -463,9 +463,9 @@ public:
|
||||
cInfo->maxdmg = fields[23].GetFloat();
|
||||
cInfo->dmgschool = fields[24].GetUInt8();
|
||||
cInfo->attackpower = fields[25].GetUInt32();
|
||||
cInfo->dmg_multiplier = fields[26].GetFloat();
|
||||
cInfo->baseattacktime = fields[27].GetUInt32();
|
||||
cInfo->rangeattacktime = fields[28].GetUInt32();
|
||||
cInfo->DamageModifier = fields[26].GetFloat();
|
||||
cInfo->BaseAttackTime = fields[27].GetUInt32();
|
||||
cInfo->RangeAttackTime = fields[28].GetUInt32();
|
||||
cInfo->unit_class = fields[29].GetUInt8();
|
||||
cInfo->unit_flags = fields[30].GetUInt32();
|
||||
cInfo->unit_flags2 = fields[31].GetUInt32();
|
||||
|
||||
@@ -110,7 +110,7 @@ class npc_pet_hunter_snake_trap : public CreatureScript
|
||||
me->SetMaxHealth(health);
|
||||
//Add delta to make them not all hit the same time
|
||||
uint32 delta = urand(0, 700);
|
||||
me->SetAttackTime(BASE_ATTACK, Info->baseattacktime + delta);
|
||||
me->SetAttackTime(BASE_ATTACK, Info->BaseAttackTime + delta);
|
||||
me->SetStatFloatValue(UNIT_FIELD_RANGED_ATTACK_POWER , float(Info->attackpower));
|
||||
me->CastSpell(me, SPELL_HUNTER_DEADLY_POISON_PASSIVE, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user