Make ExecutingAttack be a pointer, as we probably want to keep it around after it has finished executing.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -43,7 +43,7 @@ namespace CreatureLib::Battling {
|
||||
}
|
||||
TargetData()= default;
|
||||
|
||||
HitData& GetHit(uint8_t index){
|
||||
const HitData& GetHit(uint8_t index) const{
|
||||
return _hits[index];
|
||||
}
|
||||
|
||||
@@ -51,11 +51,11 @@ namespace CreatureLib::Battling {
|
||||
return &_hits[index];
|
||||
}
|
||||
|
||||
uint8_t GetNumberOfHits(){
|
||||
uint8_t GetNumberOfHits() const{
|
||||
return _hits.size();
|
||||
}
|
||||
|
||||
bool IsHit(){
|
||||
bool IsHit() const{
|
||||
return _isHit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user