mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7362] Use IN_MILISECONDS where appropriate, other cleanups.
This commit is contained in:
parent
cea44af521
commit
2b9eeb782e
22 changed files with 120 additions and 111 deletions
|
|
@ -3691,7 +3691,7 @@ void Unit::RemoveAurasDueToSpellBySteal(uint32 spellId, uint64 casterGUID, Unit
|
|||
// set its duration and maximum duration
|
||||
// max duration 2 minutes (in msecs)
|
||||
int32 dur = aur->GetAuraDuration();
|
||||
const int32 max_dur = 2*MINUTE*1000;
|
||||
const int32 max_dur = 2*MINUTE*IN_MILISECONDS;
|
||||
new_aur->SetAuraMaxDuration( max_dur > dur ? dur : max_dur );
|
||||
new_aur->SetAuraDuration( max_dur > dur ? dur : max_dur );
|
||||
|
||||
|
|
@ -11343,4 +11343,4 @@ void Unit::SetPhaseMask(uint32 newPhaseMask, bool update)
|
|||
if(IsInWorld())
|
||||
if(Pet* pet = GetPet())
|
||||
pet->SetPhaseMask(newPhaseMask,true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue