private static void UpdateEnemyCastedSpells(Character unit) { if (!unit.IsCasting) { return; } if (Debug.Instance.EnemySpellCasts.ContainsKey(unit.CastingSpellId)) { return; } var newSpellCast = new EnemySpellCastInfo(unit.SpellCastInfo.Name, unit.CastingSpellId, unit.Name); Logger.WriteInfo($@"[Debug] Adding [{newSpellCast.Id}] {newSpellCast.Name} To Enemy Spell Casts"); Debug.Instance.EnemySpellCasts.Add(newSpellCast.Id, newSpellCast); }
public static double GetIcon(this EnemySpellCastInfo spell) { return(GetActionIcon(spell.Id)); }