mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[Build] Most errors fixed
This commit is contained in:
parent
868302dd0b
commit
778052084e
70 changed files with 619 additions and 602 deletions
|
|
@ -161,7 +161,7 @@ void FleeingMovementGenerator<T>::Reset(T& owner)
|
|||
template<class T>
|
||||
bool FleeingMovementGenerator<T>::Update(T& owner, const uint32& time_diff)
|
||||
{
|
||||
if (!&owner || !owner.isAlive())
|
||||
if (!&owner || !owner.IsAlive())
|
||||
return false;
|
||||
|
||||
// ignore in case other no reaction state
|
||||
|
|
@ -196,7 +196,7 @@ void TimedFleeingMovementGenerator::Finalize(Unit& owner)
|
|||
owner.clearUnitState(UNIT_STAT_FLEEING | UNIT_STAT_FLEEING_MOVE);
|
||||
if (Unit* victim = owner.getVictim())
|
||||
{
|
||||
if (owner.isAlive())
|
||||
if (owner.IsAlive())
|
||||
{
|
||||
owner.AttackStop(true);
|
||||
((Creature*)&owner)->AI()->AttackStart(victim);
|
||||
|
|
@ -206,7 +206,7 @@ void TimedFleeingMovementGenerator::Finalize(Unit& owner)
|
|||
|
||||
bool TimedFleeingMovementGenerator::Update(Unit& owner, const uint32& time_diff)
|
||||
{
|
||||
if (!owner.isAlive())
|
||||
if (!owner.IsAlive())
|
||||
return false;
|
||||
|
||||
// ignore in case other no reaction state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue