void MoveInLineOfSight(Unit* who) { if (me->isDead()) return; if (who->GetTypeId() != TYPEID_PLAYER || !me->IsWithinDist(who, 70)) return; if (!who->isTargetableForAttack() || !me->IsHostileTo(who)) return; if (!Intro_Done) { if (Creature* Madrigosa = Unit::GetCreature(*me, pInstance ? pInstance->GetData64(DATA_MADRIGOSA) : 0)) { if (!Madrigosa->isDead()) Intro = true; else Intro_Done = true; } } if (Intro) StartIntro(); if (Intro_Done) ScriptedAI::MoveInLineOfSight(who); }
void MoveInLineOfSight(Unit *who) { if (pInstance && Intro) pInstance->SetData(DATA_BRUTALLUS_EVENT, SPECIAL); if (Intro && !IsIntro) StartIntro(); }
void MoveInLineOfSight(Unit *who) { if (!who->isTargetableForAttack() || !me->IsHostileTo(who)) return; if (pInstance && Intro) pInstance->SetData(DATA_BRUTALLUS_EVENT, SPECIAL); if (Intro && !IsIntro) StartIntro(); if (!Intro) ScriptedAI::MoveInLineOfSight(who); }
void MoveInLineOfSight(Unit* who) { if (!me->IsValidAttackTarget(who)) return; if (instance && Intro) instance->SetData(DATA_BRUTALLUS_EVENT, SPECIAL); if (Intro && !IsIntro) StartIntro(); if (!Intro) ScriptedAI::MoveInLineOfSight(who); }
void MoveInLineOfSight(Unit* who) override { if (!me->IsValidAttackTarget(who)) return; if (Intro) instance->SetBossState(DATA_BRUTALLUS, SPECIAL); if (Intro && !IsIntro) StartIntro(); if (!Intro) ScriptedAI::MoveInLineOfSight(who); }
void MoveInLineOfSight(Unit *who) { if(pInstance && Intro) pInstance->SetData(DATA_BRUTALLUS_EVENT, SPECIAL); if(Intro) { if(who->GetTypeId() == TYPEID_PLAYER && !((Player*)who)->isGameMaster()) { if(me->IsWithinDistInMap(who,100)) StartIntro(); } }else { ScriptedAI::MoveInLineOfSight(who); } }