Code:
if ($hpevent == 90)
{
foreach $ent ($npc->GetHateList())
{
$npc->CastSpell(6799, $ent->GetEnt()->GetID());
}
quest::setnexthpevent(80);
}
This is my current code. It only casts the selected spell on the player that it is directly attacking though.
Code:
@npcArray = $npc->GetHateList();
foreach $ent (@npcArray)
{
$npc->CastSpell(6799, $ent->GetEnt()->GetID());
}
Also just casts on the target.