mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
wops (042f551 follow-up)
This commit is contained in:
@@ -1325,7 +1325,6 @@ PlayerAI::TargetedSpell SimpleCharmedPlayerAI::SelectAppropriateCastForSpec()
|
||||
static const float CASTER_CHASE_DISTANCE = 28.0f;
|
||||
void SimpleCharmedPlayerAI::UpdateAI(const uint32 diff)
|
||||
{
|
||||
printf("SCPAI updateai %u\n", diff);
|
||||
Creature* charmer = GetCharmer();
|
||||
if (!charmer)
|
||||
return;
|
||||
@@ -1429,7 +1428,6 @@ void SimpleCharmedPlayerAI::UpdateAI(const uint32 diff)
|
||||
|
||||
void SimpleCharmedPlayerAI::OnCharmed(bool isNew)
|
||||
{
|
||||
printf("SCPAI oncharm %u\n", isNew);
|
||||
if (me->IsCharmed())
|
||||
{
|
||||
me->CastStop();
|
||||
|
||||
@@ -9425,7 +9425,6 @@ void Unit::SetAI(UnitAI* newAI)
|
||||
|
||||
void Unit::ScheduleAIChange()
|
||||
{
|
||||
printf("ScheduleAIChange %s\n", GetName().c_str());
|
||||
bool const charmed = IsCharmed();
|
||||
// if charm is applied, we can't have disabled AI already, and vice versa
|
||||
if (charmed)
|
||||
|
||||
Reference in New Issue
Block a user