@LabelIndex 33096
@StringIndex 0
class 0 ssq_party_leader : ssq_event_basic_warrior {
parameter:
	string	Privates = "orc:ssq_event_party_private:1:20sec;orc:ssq_event_party_private:1:20sec";

handler:
	EventHandler CREATED() {
		myself.sm.weight_point = 10;
		myself::CreatePrivates(Privates);
		super;
	}

	EventHandler ATTACKED(attacker,damage) {
		if( myself::InMyTerritory(attacker) == 0 ) {
			return;
		}
		if( attacker.is_pc != 0 || myself::IsInCategory(12,attacker.class_id) ) {
			if( damage == 0 ) {
				damage = 1;
			}
			myself::AddAttackDesire(attacker,1,( ( ( 1.000000 * damage ) / ( myself.sm.level + 7 ) ) * 100 ));
		}
		if( myself::IsNullCreature(myself.top_desire_target) == 0 ) {
			if( gg::GetAbnormalLevel(myself.sm,myself::Skill_GetAbnormalType(78708737)) >= 0 && myself::DistFromMe(myself.top_desire_target) > 40 ) {
				if( myself::CanAttack(myself.top_desire_target) == 1 ) {
					if( attacker.is_pc != 0 || myself::IsInCategory(12,attacker.class_id) ) {
						if( damage == 0 ) {
							damage = 1;
						}
						myself::AddAttackDesire(attacker,1,( ( ( 1.000000 * damage ) / ( myself.sm.level + 7 ) ) * 100 ));
					}
				} else {
					myself::RemoveAttackDesire(myself.top_desire_target.id);
					if( attacker.is_pc != 0 || myself::IsInCategory(12,attacker.class_id) ) {
						if( damage == 0 ) {
							damage = 1;
						}
						myself::AddAttackDesire(attacker,1,( ( ( 1.000000 * damage ) / ( myself.sm.level + 7 ) ) * 100 ));
					}
				}
			}
		}
		super;
	}

}
