selfhealspell.cpp 401 B

123456789101112131415161718
  1. //
  2. // Created by IgorBat on 23.04.2018.
  3. //
  4. #pragma once
  5. #include <cassert>
  6. #include "spells/selfhealspell.h"
  7. #include "units/unit.h"
  8. #include "cell.h"
  9. #include <string>
  10. void SelfHealSpell::CastSpell(Cell* from, Cell* where, Unit* who, Unit* whom){
  11. effects_[0] -> OperateOnUnit(who);
  12. }
  13. bool SelfHealSpell::canCastToCell(Cell* destination, Cell* from){
  14. return isNeirbor(destination, from);
  15. }