@LabelIndex 68671
@StringIndex 0
class 0 antaras_zergling : warrior {
parameter:
	int	SelfRangeDDMagic = 330432513;

handler:
	EventHandler CREATED() {
		myself::AddMoveToDesire(gg::FloatToInt(myself.sm.param1),gg::FloatToInt(myself.sm.param2),-7704,1000000);
	}

	EventHandler MOVE_TO_FINISHED(i1,i2,c2) {
		myself::AddUseSkillDesire(myself.sm,SelfRangeDDMagic,0,1,2000000);
	}

	EventHandler ATTACKED(attacker,damage) {
		if( myself::DistFromMe(attacker) < 230 ) {
			if( attacker.alive == 1 ) {
				myself::AddUseSkillDesire(myself.sm,SelfRangeDDMagic,0,1,2000000);
			}
		} else {
			myself::RemoveAllDesire();
			myself::AddAttackDesire(attacker,1,200);
		}
	}

	EventHandler SEE_CREATURE(creature) {
		myself::AddTimerEx(1100,1000);
		if( creature.is_pc == 1 && creature.alive == 1 ) {
			if( myself::DistFromMe(creature) < 230 ) {
				myself::AddUseSkillDesire(myself.sm,SelfRangeDDMagic,0,1,2000000);
			}
		}
	}

	EventHandler TIMER_FIRED_EX(timer_id,i0) {
		if( timer_id == 1100 ) {
			myself::LookNeighbor(200);
		}
	}

	EventHandler SCRIPT_EVENT(script_event_arg1,script_event_arg2,script_event_arg3,c0,i0) {
		if( script_event_arg1 == 12013 ) {
			myself::Despawn();
		}
	}

	EventHandler USE_SKILL_FINISHED(target,success,skill_name_id) {
		if( SelfRangeDDMagic != 0 ) {
			if( skill_name_id == SelfRangeDDMagic ) {
				if( success == 1 ) {
					myself::Suicide();
				}
			}
		}
		super;
	}

}
