Core/Creature: regenerate health
Port From (https://github.com/TrinityCore/TrinityCore/commit/9a5e2b80b39d3c0a466aec1ab3a6dbccf938f570)
This commit is contained in:
@@ -47,11 +47,7 @@ namespace Game.AI
|
||||
owner.SetWalk(true);
|
||||
owner.LoadCreaturesAddon();
|
||||
owner.GetAI().JustReachedHome();
|
||||
if (owner.IsRegeneratingHealth())
|
||||
{
|
||||
owner.SetFullHealth();
|
||||
owner.SetPower(PowerType.Mana, owner.GetMaxPower(PowerType.Mana));
|
||||
}
|
||||
owner.SetSpawnHealth();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -227,7 +227,6 @@ namespace Game.Movement
|
||||
|
||||
// inform formation
|
||||
creature.SignalFormationMovement(formationDest, waypoint.id, waypoint.moveType, (waypoint.orientation != 0 && waypoint.delay != 0) ? true : false);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -245,7 +244,6 @@ namespace Game.Movement
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
if (!_nextMoveTime.Passed())
|
||||
{
|
||||
_nextMoveTime.Update((int)diff);
|
||||
|
||||
Reference in New Issue
Block a user