diff options
| author | Shauren <shauren.trinity@gmail.com> | 2023-08-09 11:37:17 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2023-08-09 11:37:17 +0200 |
| commit | 1dd4b38170339e2d1d959c45ecad1b3b8dceb216 (patch) | |
| tree | c91c0c31e763753a6d5aff4a9874b6e904f17984 /src/server/game/Spells/SpellEffects.cpp | |
| parent | f75cf381e8fe6f3749d52b983f2ad65cac650851 (diff) | |
Core/Creatures: std::chrono-ify TempSummon
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
| -rw-r--r-- | src/server/game/Spells/SpellEffects.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 22a1bcaf147..801e53d1539 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -1833,7 +1833,7 @@ void Spell::EffectSummonType() return caster->GetGUID(); }(); - int32 duration = m_spellInfo->CalcDuration(caster); + Milliseconds duration = Milliseconds(m_spellInfo->CalcDuration(caster)); Unit* unitCaster = GetUnitCasterForEffectHandlers(); @@ -1933,7 +1933,7 @@ void Spell::EffectSummonType() { float radius = effectInfo->CalcRadius(); - TempSummonType summonType = (duration == 0) ? TEMPSUMMON_DEAD_DESPAWN : TEMPSUMMON_TIMED_DESPAWN; + TempSummonType summonType = (duration == 0ms) ? TEMPSUMMON_DEAD_DESPAWN : TEMPSUMMON_TIMED_DESPAWN; for (uint32 count = 0; count < numSummons; ++count) { @@ -4850,7 +4850,7 @@ void Spell::SummonGuardian(SpellEffectInfo const* effect, uint32 entry, SummonPr // in another case summon new float radius = 5.0f; - int32 duration = m_spellInfo->CalcDuration(m_originalCaster); + Milliseconds duration = Milliseconds(m_spellInfo->CalcDuration(m_originalCaster)); //TempSummonType summonType = (duration == 0) ? TEMPSUMMON_DEAD_DESPAWN : TEMPSUMMON_TIMED_DESPAWN; Map* map = unitCaster->GetMap(); |
