mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
chore(Core/Misc): update floor and ceil to std (#19837)
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include "Unit.h"
|
||||
#include "Vehicle.h"
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
/*
|
||||
* Scripts for spells with SPELLFAMILY_GENERIC which cannot be included in AI script file
|
||||
* of creature using it or can't be bound to any player class.
|
||||
@@ -4255,7 +4256,7 @@ class spell_gen_gift_of_naaru : public AuraScript
|
||||
break;
|
||||
}
|
||||
|
||||
int32 healTick = floor(heal / aurEff->GetTotalTicks());
|
||||
int32 healTick = std::floor(heal / aurEff->GetTotalTicks());
|
||||
amount += int32(std::max(healTick, 0));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user