@LabelIndex 108330
@StringIndex 0
class 0 ai_kinggoat_box : default_npc {
parameter:

handler:
	EventHandler CREATED() {
		myself.c_ai0 = gg::GetNullCreature();
	}

	EventHandler ATTACKED(damage,attacker) {
		myself.c_ai0 = attacker;
	}

	EventHandler MY_DYING() {
		if( myself::IsNullCreature(myself.c_ai0) == 0 ) {
			if( gg::GetAbnormalLevel(myself.c_ai0,myself::Skill_GetAbnormalType(70320129)) > 0 ) {
				if( gg::Rand(100) <= 50 ) {
					myself::DropItem1(myself.sm,9693,1);
				}
				if( gg::Rand(100) < 33 ) {
					myself::DropItem1(myself.sm,9692,1);
				}
			}
		}
	}

}
