spell.lua 275 B

1234567891011121314151617
  1. Spell = class()
  2. function Spell:getAbility()
  3. return self.ability
  4. end
  5. function Spell:getUnit()
  6. return self.ability.unit
  7. end
  8. function Spell:getUnitDirection()
  9. return self:getUnit().animation.flipped
  10. end
  11. function Spell:getPlayer()
  12. return self.ability.unit.player
  13. end