![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Tests for Wild Growth tick scaling formula. More...
#include "gtest/gtest.h"#include <cmath>#include <cstdint>#include <numeric>#include <vector>Go to the source code of this file.
Classes | |
| class | WildGrowthTickScalingTest |
Functions | |
| TEST_F (WildGrowthTickScalingTest, FirstTickIsHighest) | |
| TEST_F (WildGrowthTickScalingTest, LastTickIsLowest) | |
| TEST_F (WildGrowthTickScalingTest, TicksAreMonotonicallyDecreasing) | |
| TEST_F (WildGrowthTickScalingTest, TotalHealingPreserved) | |
| TEST_F (WildGrowthTickScalingTest, MiddleTickEqualsBase) | |
| TEST_F (WildGrowthTickScalingTest, TickValues_WithSpellPower) | |
| TEST_F (WildGrowthTickScalingTest, TickValues_RawBaseOnly_WouldBeBroken) | |
| TEST_F (WildGrowthTickScalingTest, T10_2P_ReducesReduction) | |
| TEST_F (WildGrowthTickScalingTest, T10_2P_TotalHealingPreserved) | |
Tests for Wild Growth tick scaling formula.
Wild Growth heals with a front-loaded pattern: first tick heals most, each subsequent tick heals less. The formula (from spell_dru_wild_growth_aura):
bonus = 6.0 - baseReduction * (tickNumber - 1) amount = baseTick + baseTick * bonus / 100
Where baseTick MUST include caster spell power bonuses (set via DoEffectCalcAmount, which runs after SpellHealingBonusDone in CalculateAmount). See TrinityCore issue #21281.
baseReduction defaults to 2.0, reduced by T10 Restoration 2P Bonus. Wild Growth has 7 ticks (7s duration, 1s amplitude).
Definition in file WildGrowthTickScalingTest.cpp.
| TEST_F | ( | WildGrowthTickScalingTest | , |
| FirstTickIsHighest | |||
| ) |
| TEST_F | ( | WildGrowthTickScalingTest | , |
| LastTickIsLowest | |||
| ) |
| TEST_F | ( | WildGrowthTickScalingTest | , |
| MiddleTickEqualsBase | |||
| ) |
| TEST_F | ( | WildGrowthTickScalingTest | , |
| T10_2P_ReducesReduction | |||
| ) |
| TEST_F | ( | WildGrowthTickScalingTest | , |
| T10_2P_TotalHealingPreserved | |||
| ) |
| TEST_F | ( | WildGrowthTickScalingTest | , |
| TicksAreMonotonicallyDecreasing | |||
| ) |
| TEST_F | ( | WildGrowthTickScalingTest | , |
| TickValues_RawBaseOnly_WouldBeBroken | |||
| ) |
| TEST_F | ( | WildGrowthTickScalingTest | , |
| TickValues_WithSpellPower | |||
| ) |
| TEST_F | ( | WildGrowthTickScalingTest | , |
| TotalHealingPreserved | |||
| ) |