@LabelIndex 19897
@StringIndex 0
class 0 ai_boss01_queen_ant_larva : default_npc {
parameter:
	int	different_level_9_attacked = 295895041;
	int	different_level_9_see_spelled = 276234241;

handler:
	EventHandler ATTACKED(attacker,damage,i0) {
		if( ( attacker.z - myself.sm.z ) > 500 || ( attacker.z - myself.sm.z ) < -500 ) {
		} else if( attacker.level > ( myself.sm.level + 8 ) ) {
			if( gg::GetAbnormalLevel(attacker,myself::Skill_GetAbnormalType(different_level_9_attacked)) == -1 ) {
				if( different_level_9_attacked == 295895041 ) {
					myself::CastBuffForQuestReward(attacker,different_level_9_attacked);
					myself::RemoveAttackDesire(attacker.id);
					return;
				} else {
					myself::CastBuffForQuestReward(attacker,different_level_9_attacked);
				}
			}
		}
	}

	EventHandler SEE_SPELL(speller,skill_name_id,i0) {
		if( ( speller.z - myself.sm.z ) > 500 || ( speller.z - myself.sm.z ) < -500 ) {
		} else if( speller.level > ( myself.sm.level + 8 ) ) {
			if( gg::GetAbnormalLevel(speller,myself::Skill_GetAbnormalType(different_level_9_see_spelled)) == -1 ) {
				if( different_level_9_see_spelled == 295895041 ) {
					myself::CastBuffForQuestReward(speller,different_level_9_see_spelled);
					myself::RemoveAttackDesire(speller.id);
					return;
				} else {
					myself::CastBuffForQuestReward(speller,different_level_9_see_spelled);
				}
			}
		}
	}

	EventHandler PARTY_DIED(private) {
		if( private != myself.sm ) {
			if( private == myself.boss ) {
				myself::Despawn();
			}
		}
	}

}
