Table of Contents

Class ApplyReviveAction

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Action that offers a resurrect to a dead target character. Unlike ApplyHealAction, this applies to dead characters (CurrentValue == 0). Used by resurrect/resurrection ability templates.

For a player with a live connection this sends a ResurrectOfferBroadcast and stops there — the death dialog surfaces its "Accept Resurrect" button and the player chooses between that and respawning at their bind point. The revive itself happens in CharacterSystem's accept handler, which is the only place that both clears IsDead and restores health.

A target that cannot be asked — an NPC, or a player with no active connection — is revived outright, so scripted and system resurrects still work.

[Serializable]
public class ApplyReviveAction : BaseAction, IAction
Inheritance
ApplyReviveAction
Implements
Inherited Members

Fields

ReviveValue

The value provider that determines the amount of health to restore on resurrect.

[Tooltip("The value provider that determines the amount of health to restore on resurrect.")]
[SerializeReference]
public IIntValueProvider ReviveValue

Field Value

IIntValueProvider

Methods

Execute(ICharacter, EventData)

Resurrects the target character using the computed value.

public override void Execute(ICharacter initiator, EventData eventData)

Parameters

initiator ICharacter

The character casting the resurrect.

eventData EventData

The event data containing the target information.