@LabelIndex 56534
@StringIndex 0
class 0 party_private_cannibali : party_private {
parameter:
	int	PhysicalSpecial1 = 458752001;
	int	PhysicalSpecial2 = 458752001;

handler:
	EventHandler CREATED() {
	}

	EventHandler ATTACKED(attacker,private,i6) {
		if( myself::IsMyBossAlive() && myself::DistFromMe(myself.boss) > 200 ) {
			myself::AddMoveToDesire(gg::FloatToInt(myself.boss.x),gg::FloatToInt(myself.boss.y),gg::FloatToInt(myself.boss.z),1000);
		}
		if( gg::Rand(100) < 33 ) {
			if( myself::Skill_GetConsumeMP(PhysicalSpecial1) < myself.sm.mp && myself::Skill_GetConsumeHP(PhysicalSpecial1) < myself.sm.hp && myself::Skill_InReuseDelay(PhysicalSpecial1) == 0 ) {
				myself::AddUseSkillDesire(attacker,PhysicalSpecial1,0,1,1000000);
			}
		}
		if( gg::Rand(100) < 33 ) {
			if( myself::Skill_GetConsumeMP(PhysicalSpecial2) < myself.sm.mp && myself::Skill_GetConsumeHP(PhysicalSpecial2) < myself.sm.hp && myself::Skill_InReuseDelay(PhysicalSpecial2) == 0 ) {
				myself::AddUseSkillDesire(attacker,PhysicalSpecial2,0,1,1000000);
			}
		}
		super;
	}

	EventHandler SCRIPT_EVENT(script_event_arg1,script_event_arg2,i0,c0) {
		if( script_event_arg1 == 10028 ) {
			myself::Despawn();
		}
	}

}
