mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-16 18:30:27 +00:00
Fix compiler errors and switch to using available helpers
This commit is contained in:
@@ -22,7 +22,7 @@ bool ReleaseSpiritAction::Execute(Event event)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (bot->GetCorpse() && bot->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_GHOST))
|
||||
if (bot->GetCorpse() && bot->HasPlayerFlag(PLAYER_FLAGS_GHOST))
|
||||
{
|
||||
botAI->TellMasterNoFacing("I am already a spirit");
|
||||
return false;
|
||||
@@ -149,7 +149,7 @@ bool AutoReleaseSpiritAction::isUseful()
|
||||
if (bot->InBattleground())
|
||||
return true;
|
||||
|
||||
if (bot->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_GHOST))
|
||||
if (bot->HasPlayerFlag(PLAYER_FLAGS_GHOST))
|
||||
return false;
|
||||
|
||||
if (!bot->GetGroup())
|
||||
|
||||
Reference in New Issue
Block a user