mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Merge branch 'master' into 303
Conflicts: src/game/ObjectMgr.cpp
This commit is contained in:
commit
6224f95fd5
15 changed files with 167 additions and 93 deletions
|
|
@ -9719,6 +9719,9 @@ void Unit::SetMaxHealth(uint32 val)
|
|||
|
||||
void Unit::SetPower(Powers power, uint32 val)
|
||||
{
|
||||
if(GetPower(power) == val)
|
||||
return;
|
||||
|
||||
uint32 maxPower = GetMaxPower(power);
|
||||
if(maxPower < val)
|
||||
val = maxPower;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue