@LabelIndex 106685
@StringIndex 0
class 0 raid_boss_C_course_mirror : raid_boss_standard {
parameter:
	int	mirror_image_skill = 458752001;

handler:
	EventHandler CREATED() {
		gg::SetNpcParam(myself.sm,9,myself.boss.hp);
		myself.c_ai0 = gg::GetNullCreature();
		myself.i_ai0 = 0;
		myself.c_ai0 = gg::GetCreatureFromIndex(myself.sm.param2);
		super;
	}

	EventHandler ATTACKED(attacker,damage,skill_name_id) {
		if( skill_name_id == 302 ) {
			if( gg::Rand(2) ) {
				return;
			}
		}
		myself.i_ai0 = ( myself.i_ai0 + damage );
		if( myself.i_ai0 >= 50000 ) {
			myself::Despawn();
		}
		super;
	}

	EventHandler TIMER_FIRED_EX(timer_id,i0,i1) {
		if( timer_id == 2001 ) {
			myself::Despawn();
		} else if( timer_id == 2002 ) {
			if( myself::IsNullCreature(myself.c_ai0) == 0 ) {
				myself::AddAttackDesire(myself.c_ai0,1,10000);
			}
		}
		super;
	}

	EventHandler SCRIPT_EVENT(script_event_arg1,script_event_arg2) {
		if( script_event_arg1 == 11039 ) {
			myself::Despawn();
		} else if( script_event_arg1 == 12519 ) {
			myself::AddAttackDesire(myself.c_ai0,1,10000);
		}
	}

	EventHandler PARTY_ATTACKED(attacker,private,damage,i0,c0) {
		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 ) ) * 10000 ));
		}
	}

}
