| 171 | } |
| 172 | |
| 173 | int AdjustDamageForDefend(int dmg, const Game_Battler& target) { |
| 174 | if (target.IsDefending()) { |
| 175 | dmg /= 2; |
| 176 | if (target.HasStrongDefense()) { |
| 177 | dmg /= 2; |
| 178 | } |
| 179 | } |
| 180 | return dmg; |
| 181 | } |
| 182 | |
| 183 | int CalcNormalAttackEffect(const Game_Battler& source, |
| 184 | const Game_Battler& target, |
no test coverage detected