public void AddStatusEffect(StatusEffect effect) { if (effect != null) { Type type = effect.GetType(); if (statusEffects.ContainsKey(type)) { statusEffects[type].Stack(effect); } else { statusEffects[type] = effect; effect.OnAdd(this); } StatusInflicted(this, new FighterEventArgs { StatusEffect = statusEffects[type] }); } }
public abstract void Stack(StatusEffect other);
public abstract void Stack(StatusEffect other);