mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 21:56:22 +00:00
refactor(Core/Object): getLevel() -> GetLevel() (#14122)
* refactor(Core/Object): getLevel() -> GetLevel() * fix build and sneak some doxygen in * codeSTLE * codestyle
This commit is contained in:
@@ -846,7 +846,7 @@ public:
|
||||
if (Creature* creature = player->FindNearestCreature(NPC_SCARSHIELD_INFILTRATOR, 100.0f, true))
|
||||
{
|
||||
bool transformHasStarted = creature->AI()->GetData(0) == 1;
|
||||
if ((player->getLevel() < 57 || !player->HasItemCount(ITEM_UNADORNED_SEAL)) && !transformHasStarted)
|
||||
if ((player->GetLevel() < 57 || !player->HasItemCount(ITEM_UNADORNED_SEAL)) && !transformHasStarted)
|
||||
{
|
||||
// Send whisper if not already sent
|
||||
std::list<ObjectGuid>::iterator itr = std::find(whisperedTargets.begin(), whisperedTargets.end(), player->GetGUID());
|
||||
@@ -876,7 +876,7 @@ public:
|
||||
{
|
||||
if (Creature* creature = player->FindNearestCreature(NPC_SCARSHIELD_INFILTRATOR, 100.0f, true))
|
||||
{
|
||||
if (player->getLevel() >= 57 && player->HasItemCount(ITEM_UNADORNED_SEAL))
|
||||
if (player->GetLevel() >= 57 && player->HasItemCount(ITEM_UNADORNED_SEAL))
|
||||
{
|
||||
creature->AI()->SetData(0, 1); // Start transform into Vaelan
|
||||
return true;
|
||||
|
||||
@@ -624,7 +624,12 @@ public:
|
||||
DoCast(target, SPELL_FLASH_HEAL, false);
|
||||
else
|
||||
{
|
||||
// bugged
|
||||
/**
|
||||
* @bug
|
||||
* Bugged
|
||||
* //me->GetMotionMaster()->Clear();
|
||||
* //me->GetMotionMaster()->MoveChase(target, 20);
|
||||
*/
|
||||
//me->GetMotionMaster()->Clear();
|
||||
//me->GetMotionMaster()->MoveChase(target, 20);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user