|
@@ -16,11 +16,12 @@ void MeleeDamage::OperateOnUnitToCell(Unit* who, Cell* where){
|
|
|
}
|
|
|
|
|
|
void MeleeDamage::OperateOnUnit(Unit* unit){
|
|
|
-// unit->setHealthPoints( unit->getHealthPoints() -
|
|
|
-// (count_ - 2.5 * double(count_) * double(unit->getPhysicDefence()) / 100.0));
|
|
|
+ unit->setHealthPoints( unit->getHealthPoints() -
|
|
|
+ (count_ - 2.5 * double(count_) * double(unit->getPhysicDefence()) / 100.0));
|
|
|
}
|
|
|
|
|
|
void MeleeDamage::Execute(Cell* from, Cell* where, Unit* who, Unit* whom, TypeOfTrigger Type){
|
|
|
- if(Type == 1)
|
|
|
+ if(Type == 1){
|
|
|
OperateOnUnit(whom);
|
|
|
+ }
|
|
|
}
|