change "IN_MILISECONDS" to proper english "IN_MILLISECONDS"
--HG-- branch : trunk
This commit is contained in:
@@ -619,7 +619,7 @@ void Creature::Regenerate(Powers power)
|
||||
if ((*i)->GetMiscValue() == power)
|
||||
addvalue *= ((*i)->GetAmount() + 100) / 100.0f;
|
||||
|
||||
addvalue += GetTotalAuraModifierByMiscValue(SPELL_AURA_MOD_POWER_REGEN, power) * (isHunterPet()? PET_FOCUS_REGEN_INTERVAL : CREATURE_REGEN_INTERVAL) / (5 * IN_MILISECONDS);
|
||||
addvalue += GetTotalAuraModifierByMiscValue(SPELL_AURA_MOD_POWER_REGEN, power) * (isHunterPet()? PET_FOCUS_REGEN_INTERVAL : CREATURE_REGEN_INTERVAL) / (5 * IN_MILLISECONDS);
|
||||
|
||||
ModifyPower(power, (int32)addvalue);
|
||||
}
|
||||
@@ -1112,7 +1112,7 @@ void Pet::_LoadSpellCooldowns()
|
||||
continue;
|
||||
|
||||
data << uint32(spell_id);
|
||||
data << uint32(uint32(db_time-curTime)*IN_MILISECONDS);
|
||||
data << uint32(uint32(db_time-curTime)*IN_MILLISECONDS);
|
||||
|
||||
_AddCreatureSpellCooldown(spell_id,db_time);
|
||||
|
||||
@@ -1229,10 +1229,10 @@ void Pet::_LoadAuras(uint32 timediff)
|
||||
// negative effects should continue counting down after logout
|
||||
if (remaintime != -1 && !IsPositiveSpell(spellid))
|
||||
{
|
||||
if (remaintime/IN_MILISECONDS <= int32(timediff))
|
||||
if (remaintime/IN_MILLISECONDS <= int32(timediff))
|
||||
continue;
|
||||
|
||||
remaintime -= timediff*IN_MILISECONDS;
|
||||
remaintime -= timediff*IN_MILLISECONDS;
|
||||
}
|
||||
|
||||
// prevent wrong values of remaincharges
|
||||
|
||||
Reference in New Issue
Block a user