public void AddSpell(SpellStatus spellStatus) { if (m_dirtySpells.Remove(spellStatus.instanceId)) { FightLogicExecutor.NotifySpellReAddedForPlayer(fightId, this); } else { m_availableSpells.Add(spellStatus.instanceId, spellStatus); } }