EerieVillage/Assets/Scripts/Skills/Effectors/CloneEffector.cs

25 lines
978 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace EerieVillage.Skills.Effectors
{
/// <summary>
/// A10 분신 Effector (BT12-Dev-Clone · 2026-05-15).
///
/// Category D (Minion) 영역 CardId == "A10" 분기에서 호출.
/// γ 단계 SkillFireEvent.Execute 영역 Minion case 분기:
/// if (data.CardId == "A10") effector = new CloneEffector();
/// else effector = new SpiritFireSpawner(); // 기존 A11
///
/// 본 Effector는 분신 spawn (또는 Singleton 1기 교체)만 담당.
/// 분신 자체 발동은 CloneInstance.EnqueuePlayerFire (Player Fire hook 시점).
/// </summary>
public class CloneEffector : IEffector
{
public void Trigger(ActiveSkillRuntime runtime, PlayerSkillInventory inventory)
{
if (runtime == null || inventory == null) return;
// 분신 spawn 또는 교체 (Singleton 1기 유지·PD 결정)
CloneInstance.SpawnOrReplace(inventory, runtime.ActiveData);
}
}
}