mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Core/Misc: Added float chrono typedefs
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user