Fixed exception messages being wrong.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-07-31 11:23:23 +02:00
parent a4c4cad59b
commit 9c93ca6995
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 2 additions and 3 deletions

View File

@ -74,7 +74,7 @@ void TurnHandler::ExecuteAttackChoice(ArbUt::BorrowedPtr<AttackTurnChoice> choic
ArbUt::List<ArbUt::BorrowedPtr<Creature>> targets;
try_creature(targets =
TargetResolver::ResolveTargets(choice->GetTarget(), targetType, choice->GetUser()->GetBattle());
, "Exception during target determination: '" << e.what() << "'.");
, "Exception during target determination");
auto attack = ExecutingAttack(targets, 1, choice->GetUser(), choice->GetAttack(), choice->GetAttackScript());
bool prevented = false;
@ -106,8 +106,7 @@ void TurnHandler::ExecuteAttackChoice(ArbUt::BorrowedPtr<AttackTurnChoice> choic
for (uint8_t i = 0; i < attack.GetTargetCount(); i++) {
auto target = attack.GetTargets()[i];
try_creature(HandleAttackForTarget(&attack, target),
"Exception occured during handling attack for target: '" << e.what() << "'.");
try_creature(HandleAttackForTarget(&attack, target), "Exception occured during handling attack for target");
}
}