aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-01-19 18:29:38 +0100
committerShauren <shauren.trinity@gmail.com>2025-01-19 18:29:38 +0100
commitcb4013efe67a875dc19ef3bcd5b8c142f5a131d6 (patch)
treeb00de9bbf536e78a915272fe791856087a999a9a /src/server/scripts
parent453ae0ab88eb7c64cb10f35302c337ec99e272b5 (diff)
Core/Misc: Added float chrono typedefs
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Spells/spell_dh.cpp2
-rw-r--r--src/server/scripts/Spells/spell_evoker.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Spells/spell_dh.cpp b/src/server/scripts/Spells/spell_dh.cpp
index da84f70c52f..1b7b37adf13 100644
--- a/src/server/scripts/Spells/spell_dh.cpp
+++ b/src/server/scripts/Spells/spell_dh.cpp
@@ -971,7 +971,7 @@ struct at_dh_glaive_tempest : AreaTriggerAI
{
_scheduler.Schedule(0ms, [this](TaskContext task)
{
- std::chrono::duration<float> period = 500ms; // 500ms, affected by haste
+ FloatMilliseconds period = 500s; // 500ms, affected by haste
if (Unit* caster = at->GetCaster())
{
period *= *caster->m_unitData->ModHaste;
diff --git a/src/server/scripts/Spells/spell_evoker.cpp b/src/server/scripts/Spells/spell_evoker.cpp
index 7e371042134..82eb493dc04 100644
--- a/src/server/scripts/Spells/spell_evoker.cpp
+++ b/src/server/scripts/Spells/spell_evoker.cpp
@@ -384,7 +384,7 @@ struct at_evo_firestorm : AreaTriggerAI
_scheduler.Schedule(0ms, [this](TaskContext task)
{
- std::chrono::duration<float> period = 2s; // 2s, affected by haste
+ FloatMilliseconds period = 2s; // 2s, affected by haste
if (Unit* caster = at->GetCaster())
{
period *= *caster->m_unitData->ModCastingSpeed;