12345678910111213141516171819 |
- //
- // Created by IgorBat on 23.04.2018.
- //
- #pragma once
- #include <cassert>
- #include "effect\melledamage.h"
- #include "units\unit.h"
- #include <string>
- void melledamage::OperateOnCell(Cell* cell){
- throw std :: string("CAN'T TOUCH THIS")
- }
- void melledamage::OperateOnUnit(Unit* unit){
- double temp = unit.reduceIncomingDamage("p", count_);
- unit.setHealthPoints(unit.getHealthPoints() - temp);
- //check_on_death
- }
|