Fixed exception messages being wrong.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
a4c4cad59b
commit
9c93ca6995
|
@ -74,7 +74,7 @@ void TurnHandler::ExecuteAttackChoice(ArbUt::BorrowedPtr<AttackTurnChoice> choic
|
||||||
ArbUt::List<ArbUt::BorrowedPtr<Creature>> targets;
|
ArbUt::List<ArbUt::BorrowedPtr<Creature>> targets;
|
||||||
try_creature(targets =
|
try_creature(targets =
|
||||||
TargetResolver::ResolveTargets(choice->GetTarget(), targetType, choice->GetUser()->GetBattle());
|
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());
|
auto attack = ExecutingAttack(targets, 1, choice->GetUser(), choice->GetAttack(), choice->GetAttackScript());
|
||||||
bool prevented = false;
|
bool prevented = false;
|
||||||
|
@ -106,8 +106,7 @@ void TurnHandler::ExecuteAttackChoice(ArbUt::BorrowedPtr<AttackTurnChoice> choic
|
||||||
|
|
||||||
for (uint8_t i = 0; i < attack.GetTargetCount(); i++) {
|
for (uint8_t i = 0; i < attack.GetTargetCount(); i++) {
|
||||||
auto target = attack.GetTargets()[i];
|
auto target = attack.GetTargets()[i];
|
||||||
try_creature(HandleAttackForTarget(&attack, target),
|
try_creature(HandleAttackForTarget(&attack, target), "Exception occured during handling attack for target");
|
||||||
"Exception occured during handling attack for target: '" << e.what() << "'.");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue