示例#1
0
        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);
        }
示例#2
0
 public static double GetIcon(this EnemySpellCastInfo spell)
 {
     return(GetActionIcon(spell.Id));
 }