@LabelIndex 16576
@StringIndex 0
class 0 party_private_casting_heal : party_private {
parameter:
	int	MagicHeal = 264568833;

handler:
	EventHandler ATTACKED(attacker,damege,i0) {
		i0 = gg::FloatToInt(( ( myself.sm.hp / myself.sm.max_hp ) * 100 ));
		if( gg::Rand(100) < 33 && i0 < 70 ) {
			if( myself::Skill_GetConsumeMP(MagicHeal) < myself.sm.mp && myself::Skill_GetConsumeHP(MagicHeal) < myself.sm.hp && myself::Skill_InReuseDelay(MagicHeal) == 0 ) {
				myself::AddUseSkillDesire(myself.sm,MagicHeal,1,1,1000000);
			}
		}
		super;
	}

	EventHandler PARTY_ATTACKED(attacker,private,damege,i0) {
		i0 = gg::FloatToInt(( ( private.hp / private.max_hp ) * 100 ));
		if( gg::Rand(100) < 33 && i0 < 70 ) {
			if( myself::Skill_GetConsumeMP(MagicHeal) < myself.sm.mp && myself::Skill_GetConsumeHP(MagicHeal) < myself.sm.hp && myself::Skill_InReuseDelay(MagicHeal) == 0 ) {
				myself::AddUseSkillDesire(private,MagicHeal,1,1,1000000);
			}
		}
		super;
	}

}
