Fixes for damage calculations always using a base power of 0.
This commit is contained in:
@@ -44,7 +44,7 @@ namespace CreatureLib::Battling {
|
||||
}
|
||||
TargetData() = default;
|
||||
|
||||
const HitData& GetHit(uint8_t index) const { return _hits[index]; }
|
||||
HitData* GetHit(uint8_t index) { return &_hits[index]; }
|
||||
|
||||
HitData* GetHitPtr(uint8_t index) { return &_hits[index]; }
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace CreatureLib::Battling {
|
||||
|
||||
bool IsCreatureTarget(Creature* creature) { return _targets.find(creature) != _targets.end(); }
|
||||
|
||||
const std::unordered_map<Creature*, TargetData>& GetTargets() { return _targets; }
|
||||
std::unordered_map<Creature*, TargetData>& GetTargets() { return _targets; }
|
||||
|
||||
Creature* GetUser() { return _user; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user