@LabelIndex 53756
@StringIndex 0
class 0 party_leader_pabelgolem : party_leader {
parameter:
	int	PhysicalSpecial = 458752001;
	int	SelfRangePhysicalSpecial = 458752001;
	int	DeBuff = 458752001;

handler:
	EventHandler ATTACKED(attacker,damage,party0) {
		party0 = gg::GetParty(attacker);
		if( myself::IsNullParty(party0) == 1 && gg::Rand(100) < 33 ) {
			if( myself::Skill_GetConsumeMP(PhysicalSpecial) < myself.sm.mp && myself::Skill_GetConsumeHP(PhysicalSpecial) < myself.sm.hp && myself::Skill_InReuseDelay(PhysicalSpecial) == 0 ) {
				myself::AddUseSkillDesire(attacker,PhysicalSpecial,0,1,1000000);
			}
		} else if( myself::IsNullParty(party0) != 1 && gg::Rand(100) < 33 ) {
			if( myself::Skill_GetConsumeMP(SelfRangePhysicalSpecial) < myself.sm.mp && myself::Skill_GetConsumeHP(SelfRangePhysicalSpecial) < myself.sm.hp && myself::Skill_InReuseDelay(SelfRangePhysicalSpecial) == 0 ) {
				myself::AddUseSkillDesire(attacker,SelfRangePhysicalSpecial,0,1,1000000);
			}
		}
		super;
	}

	EventHandler PARTY_ATTACKED(attacker,private) {
		if( gg::Rand(100) < 20 ) {
			if( myself::Skill_GetConsumeMP(DeBuff) < myself.sm.mp && myself::Skill_GetConsumeHP(DeBuff) < myself.sm.hp && myself::Skill_InReuseDelay(DeBuff) == 0 ) {
				myself::AddUseSkillDesire(attacker,DeBuff,0,1,1000000);
			}
		}
		super;
	}

}
