This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit 89eac53 committed Feb 28, 2025 · 3 / 3
1 parent f11386a commit 89eac53 Copy full SHA for 89eac53
File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -838,10 +838,13 @@ void PartyBotAI::UpdateAI(uint32 const diff)
838
838
auto auraList = pLeader->GetAurasByType (SPELL_AURA_MOUNTED);
839
839
if (!auraList.empty ())
840
840
{
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);
842
843
me->SetCheatOption (PLAYER_CHEAT_NO_CAST_TIME, true );
844
+ me->SetCheatOption (PLAYER_CHEAT_NO_POWER, true );
843
845
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);
845
848
}
846
849
}
847
850
}
@@ -3369,4 +3372,4 @@ void PartyBotAI::UpdateInCombatAI_Druid()
3369
3372
break ;
3370
3373
}
3371
3374
}
3372
- }
3375
+ }
You can’t perform that action at this time.
0 commit comments