Loyal Companion

**Loyal Companion** is a Ranger's class feature. It provides an unique gameplay mechanic, available only to those who play as Ranger.

## Description

Due to your connection with the nature, you can understand and create relationships with wild animals. Choose one of the two companions, their behaviour, their aggro behaviour and they will protect and fight alongside you.

## Customization

Upon clicking the class feature icon in the Class GUI or in the skill selection GUI, you will be redirected to the feature's customization. Here you can change 4 things about your pet:

### Spawn on Join

See summoning and unusmmoning.

Possible options:

* Spawn automatically - the companion will be summoned at your position on join.
* Spawn manually - the companion won't be summoned when you join the game. You need to manually spawn it in by crouching for 3 seconds.

### Type

The companion's type affects its look, health, speed and passive ability. The default type is Wolf.

#### Wolf

* **Health**: 110% of player's Max HP
* **Speed**: 125%
* **Respawn time**: 50 seconds
* **Passive ability**: Counter-attack

When hit by a physical attack and the attacker is within 5 blocks radius, it has 10% chance to instantly attack the damaging entity without the need to wait for and without triggering the attack cooldown.

#### Ocelot

* **Health**: 100% of player's Max HP
* **Speed**: 150%
* **Respawn time**: 60 seconds
* **Passive ability**: Dodge

When hit by a physical attack, it has 10% to completely nullify the attack's damage and knockback.

### Behaviour

The companion's behaviour affects how it behaves when a monster appears in the companion's range.

#### Always Attack

If this option is chosen and the companion doesn't have a target set, it will attack the closest monster.

#### Standby

When this option is chosen, the companion will attack if either you or it is damaged, or when you initiate the fight.

### Mode

The companion's mode determines its style of attack. Both of the modes are different in terms of attack power and the activated ability.

#### Aggressive

With this mode selected, the companion will focus on dealing more damage and keeping the monsters' aggro on itself. All attacks dealt by it will apply 3 aggro points.

* **Attack cooldown**: 1.5 seconds
* **Damage per hit**: 5 + (your level) / 2
* **Ability cooldown**: 15 seconds
* **Ability**: Provoke

All monsters in 7.5 blocks radius receive 100 aggro points towards the companion for 5 seconds, making them focus on it, unless someone/something has higher aggro (e.g. long enough fights or some of the Warrior's abilities. The ability won't activate if no enemies are nearby.

#### Supportive

With this mode selected, the companion will adjust its attacks to be unseen to the enemies and will focus on its survivability. Its attacks only apply 1 aggro point.

* **Attack cooldown**: 2.5 seconds
* **Damage per hit**: 4 + (your level) / 2.1
* **Ability cooldown**: 30 seconds
* **Ability**: Self Heal

Apply a regeneration effect on itself that lasts for 3 seconds and heals 5% of its Max HP every 1 second. The ability won't activate unless the companion has less than 75% of their Max HP.

## Mechanics

### Summoning and Unsummoning

By default, when you join the game, your companion will be summoned at your location. You can later manually unsummon it by right-clicking it. When you do that, you need to crouch for 3 seconds to summon it back (indicated by the bar at the top of your screen).

Note: you cannot summon the companion if it's respawning.

### Respawning

When your companion is killed, it will be unsummoned and will be summoned again after a certain period of time passes. The time required for it to respawn is influenced by the companion's type. You can see the time left on the top of your screen.

### Following the Owner

If you are over 10 blocks from your companion, it will start following you. If you are more than 25 blocks away from it, you teleport etc., it will teleport to your location.

### Targeting (Aggro)

Depending on the companion's behaviour, your companion might attack nearby monsters by itself or wait until its aggro is increased. The companion's aggro can be increased in 3 ways:

* When you attack an entity, your companion receives 3 aggro points towards it
* When you are attacked by an entity, your companion receives 5 aggro points towards the attacker
* When your companion is damaged, it receives 2 aggro points towards the attacker

### Attacking

The companion will pursue the current target and if it's within about 3 blocks, it will leap towards the target. If the companion is within 1.5 blocks, it will bite the target, dealing damage appropriate to its mode.

If the attack cooldown is still up and the companion is within 3 blocks of the target, it will strafe around it, going backwards and right/left (random, changed upon leap).

Upon successful attack, it has 50% chance to leap backwards, reducing the likelihood it will be damaged by that entity.

### Ability Usage

Depending on the companion's mode, it will use its ability every x seconds while in combat.

* #Aggressive - **Provoke** - all monsters in 7.5 blocks radius receive 100 aggro points towards the companion for 5 seconds, making them focus on it, unless someone/something has higher aggro.
* #Supportive - **Self Healing** - apply a regeneration effect on itself that lasts for 3 seconds and heals 5% of its Max HP every 1 second.

Upon ability activation, you will be informed in chat about it. Additionally, the companion will spawn particle effects around itself and let out a sound.

### Health

All companions have a passive health regeneration rate at 1% of their Max HP every 1 second.

If companions are unsummoned, their current HP is saved and when they are resummoned, they have the same current HP. When companion respawns, its HP is set to 100% of their Max HP.