From 15588f73aedef7c39e2ccb98e576670a324f6bc7 Mon Sep 17 00:00:00 2001 From: insunaa Date: Tue, 18 Jun 2024 11:31:05 +0200 Subject: [PATCH] Unit: deprecate ApplyPowerMod --- src/game/Entities/Unit.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/Entities/Unit.h b/src/game/Entities/Unit.h index 2d7ee4ab0c1..09023011dc7 100644 --- a/src/game/Entities/Unit.h +++ b/src/game/Entities/Unit.h @@ -1431,6 +1431,7 @@ class Unit : public WorldObject void SetPower(Powers power, float val, bool withPowerUpdate = true); void SetMaxPower(Powers power, uint32 val); int32 ModifyPower(Powers power, int32 dVal); + [[deprecated("Use ModifyPower()")]] void ApplyPowerMod(Powers power, uint32 val, bool apply); void ApplyMaxPowerMod(Powers power, uint32 val, bool apply); bool HasMana() { return GetPowerType() == POWER_MANA; }