예제 #1
0
 public void Cast(Spell spell)
 {
     if(Source.Target != null)
         if (GameWorld.GetDistance(Source.Location, Source.Target.Location) > spell.Range) return;
     if (!Cooldowns[spell.GetType()].Start()) return;
     if (!Source.Energy.Use(spell.Cost)) return;
     spell.Cast();
 }
예제 #2
0
 public void Remove(Spell spell)
 {
     GameWorld.Remove(spell);
     Spells.Remove(spell);
 }