Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 89eac53

Browse files
committedFeb 28, 2025·
Improve party bot mounts
1 parent f11386a commit 89eac53

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed
 

‎src/game/PlayerBots/PartyBotAI.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -838,10 +838,13 @@ void PartyBotAI::UpdateAI(uint32 const diff)
838838
auto auraList = pLeader->GetAurasByType(SPELL_AURA_MOUNTED);
839839
if (!auraList.empty())
840840
{
841-
bool oldState = me->HasCheatOption(PLAYER_CHEAT_NO_CAST_TIME);
841+
bool oldStateCastTime = me->HasCheatOption(PLAYER_CHEAT_NO_CAST_TIME);
842+
bool oldStatePower = me->HasCheatOption(PLAYER_CHEAT_NO_POWER);
842843
me->SetCheatOption(PLAYER_CHEAT_NO_CAST_TIME, true);
844+
me->SetCheatOption(PLAYER_CHEAT_NO_POWER, true);
843845
me->CastSpell(me, (*auraList.begin())->GetId(), true);
844-
me->SetCheatOption(PLAYER_CHEAT_NO_CAST_TIME, oldState);
846+
me->SetCheatOption(PLAYER_CHEAT_NO_CAST_TIME, oldStateCastTime);
847+
me->SetCheatOption(PLAYER_CHEAT_NO_POWER, oldStatePower);
845848
}
846849
}
847850
}
@@ -3369,4 +3372,4 @@ void PartyBotAI::UpdateInCombatAI_Druid()
33693372
break;
33703373
}
33713374
}
3372-
}
3375+
}

0 commit comments

Comments
 (0)
Please sign in to comment.