mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
[7362] Use IN_MILISECONDS where appropriate, other cleanups. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
@@ -4009,7 +4009,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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user