Example #1
0
 public ISpell(ISpellType st, ISpellEffect se, ISpellRune sr, int vl, float rg)
 {
     this.spellType   = st;
     this.spellEffect = se;
     this.spellRune   = sr;
     this.value       = vl;
     this.range       = rg;
 }
Example #2
0
 public SpellInfo(int spellCooldownID, int totalCastTime, int castTimeRemaining, ISpellTargeter targeter, ISpellEffect effect)
 {
     SpellCooldownID     = spellCooldownID;
     TotalCastTimeMS     = totalCastTime;
     CastTimeRemainingMS = castTimeRemaining;
     SpellTargeter       = targeter;
     SpellEffect         = effect;
 }
Example #3
0
    public override void UseCard(Owner caster, MapPosition target)
    {
        ISpellEffect effect = DataLibrary.GetEffect(AssociatedEffect) as ISpellEffect;

        effect.OnUseCard(caster, target);
    }