mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
feat(Core/Unit): Implement OnPowerUpdate() unit script hook (#17560)
This commit is contained in:
@@ -14115,6 +14115,11 @@ int32 Unit::ModifyPower(Powers power, int32 dVal, bool withPowerUpdate /*= true*
|
||||
gain = maxPower - curPower;
|
||||
}
|
||||
|
||||
if (GetAI())
|
||||
{
|
||||
GetAI()->OnPowerUpdate(power, gain, dVal, curPower);
|
||||
}
|
||||
|
||||
return gain;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user