Further work on better exceptions.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -66,7 +66,7 @@ namespace CreatureLib::Battling {
|
||||
return _hits[i * _numberHits + hit];
|
||||
}
|
||||
}
|
||||
throw CreatureException("Invalid target requested.");
|
||||
THROW_CREATURE("Invalid target requested.");
|
||||
}
|
||||
|
||||
HitData* GetTargetIteratorBegin(Creature* creature) {
|
||||
@@ -75,7 +75,7 @@ namespace CreatureLib::Battling {
|
||||
return &_hits[i * _numberHits * sizeof(HitData)];
|
||||
}
|
||||
}
|
||||
throw CreatureException("Invalid target requested.");
|
||||
THROW_CREATURE("Invalid target requested.");
|
||||
}
|
||||
|
||||
bool IsCreatureTarget(Creature* creature) noexcept {
|
||||
|
||||
Reference in New Issue
Block a user