All pastes #63581 Raw Edit

Starfleet-01

public text v1 · immutable
#63581 ·published 2006-06-10 08:24 UTC
rendered paste body
// 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;
			}
		}