Starfleet-01
public text v1 · immutable// Check if the skill is defensive
if (skill.isDefensive())
{
// check if the target is a monster and if force attack is set.. if not then we don't want to cast.
if ((target instanceof L2MonsterInstance) && (forceuse == false))
{
// send the action failed so that the skill doens't go off.
sendPacket (new ActionFailed());
// let the player know.
sendPacket(new SystemMessge("Attempting to use a defensive skill on a mob.. force attack it."));
return;
}
}