Skip to content
  • Lars Mitsem Selbekk's avatar
    Use passed caster-Hero for ActiveSpell-target · 1ac5ce1c
    Lars Mitsem Selbekk authored and Mathias O. Myklebust's avatar Mathias O. Myklebust committed
    Previously, battle.hero1 was always used for the target, which made
    sense except for when spells cast by the other player needed to be
    applied. This adds a parameter so the ActiveSpell knows who cast it.
    
    The reason this touches so many files is that the parameterization of
    Hero<Spell<*>> needed to be removed because the type system isn't
    capable enough. This means that using a Hero's Spell will always require
    a check of the Spell type.
    
    Closes #62
    1ac5ce1c