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/scripts/Spells | |
| parent | f75cf381e8fe6f3749d52b983f2ad65cac650851 (diff) | |
Core/Creatures: std::chrono-ify TempSummon
Diffstat (limited to 'src/server/scripts/Spells')
| -rw-r--r-- | src/server/scripts/Spells/spell_generic.cpp | 2 | ||||
| -rw-r--r-- | src/server/scripts/Spells/spell_shaman.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Spells/spell_generic.cpp b/src/server/scripts/Spells/spell_generic.cpp index 34352ba96c6..af5668fd93f 100644 --- a/src/server/scripts/Spells/spell_generic.cpp +++ b/src/server/scripts/Spells/spell_generic.cpp @@ -4784,7 +4784,7 @@ class spell_summon_battle_pet : public SpellScript Unit* caster = GetCaster(); SummonPropertiesEntry const* properties = sSummonPropertiesStore.LookupEntry(uint32(GetEffectInfo().MiscValueB)); - uint32 duration = uint32(GetSpellInfo()->CalcDuration(caster)); + Milliseconds duration = Milliseconds(GetSpellInfo()->CalcDuration(caster)); Position pos = GetHitDest()->GetPosition(); if (Creature* summon = caster->GetMap()->SummonCreature(creatureId, pos, properties, duration, caster, GetSpellInfo()->Id)) diff --git a/src/server/scripts/Spells/spell_shaman.cpp b/src/server/scripts/Spells/spell_shaman.cpp index d810f044216..a48072df244 100644 --- a/src/server/scripts/Spells/spell_shaman.cpp +++ b/src/server/scripts/Spells/spell_shaman.cpp @@ -854,7 +854,7 @@ class spell_sha_healing_rain : public SpellScript { if (WorldLocation const* dest = GetExplTargetDest()) { - int32 duration = GetSpellInfo()->CalcDuration(GetOriginalCaster()); + Milliseconds duration = Milliseconds(GetSpellInfo()->CalcDuration(GetOriginalCaster())); TempSummon* summon = GetCaster()->GetMap()->SummonCreature(NPC_HEALING_RAIN_INVISIBLE_STALKER, *dest, nullptr, duration, GetOriginalCaster()); if (!summon) return; |
