Core/Auras: periodics refactor part 1:

- Don't skip ticks if diff is greater than amplitude
- Fixed spells without ampltude in DBC

(cherry picked from commit 5d91beb1dbc795382a12ec05f6e72c76b195b141)
This commit is contained in:
ariel-
2021-03-15 20:17:31 +01:00
committed by funjoker
parent fe362cf2c9
commit 5f9e0d92d5
11 changed files with 117 additions and 53 deletions
+1 -1
View File
@@ -1319,7 +1319,7 @@ class spell_gen_gift_of_naaru : public AuraScript
void CalculateAmount(AuraEffect const* aurEff, int32& amount, bool& /*canBeRecalculated*/)
{
if (!GetCaster())
if (!GetCaster() || !aurEff->GetTotalTicks())
return;
float heal = 0.0f;