then this shold work right?
Code:
my $npc_target = $client->GetTarget();
my $mon_target = $npc_target->GetMobID();
$client->CastSpell($a_cast_buff,$mon_target,10,0,0);
it doesn't i'm not sure why
$a_cast_buff is some spell id value (i outputted it to make sure it was valid)
casting on $clientid works with the same $client->Cast. etc code