@LabelIndex 38165
@StringIndex 0
class 0 royal_rush_roomboss_5 : royal_rush_roomboss_basic {
parameter:
	int	SelfRangeDDMagic1 = 264241153;
	int	DeBuff = 264241153;
	int	DDMagic = 264241153;

handler:
	EventHandler ATTACKED(attacker,damage) {
		if( attacker.is_pc != 0 || myself::IsInCategory(12,attacker.class_id) ) {
			if( myself::IsNullCreature(myself.top_desire_target) == 0 ) {
				if( gg::Rand(100) < 33 && myself.top_desire_target != attacker ) {
					if( myself::Skill_GetConsumeMP(SelfRangeDDMagic1) < myself.sm.mp && myself::Skill_GetConsumeHP(SelfRangeDDMagic1) < myself.sm.hp && myself::Skill_InReuseDelay(SelfRangeDDMagic1) == 0 ) {
						myself::AddUseSkillDesire(myself.sm,SelfRangeDDMagic1,0,1,1000000);
					}
				}
				if( gg::Rand(100) < 33 && myself.top_desire_target == attacker ) {
					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);
					}
				}
				if( gg::Rand(100) < 33 && myself.top_desire_target == attacker ) {
					if( myself::Skill_GetConsumeMP(DDMagic) < myself.sm.mp && myself::Skill_GetConsumeHP(DDMagic) < myself.sm.hp && myself::Skill_InReuseDelay(DDMagic) == 0 ) {
						myself::AddUseSkillDesire(attacker,DDMagic,0,1,1000000);
					}
				}
			}
		}
		super;
	}

}
