diff --git a/src/Battling/Models/Creature.cpp b/src/Battling/Models/Creature.cpp index 4b5ebce..83bce2c 100644 --- a/src/Battling/Models/Creature.cpp +++ b/src/Battling/Models/Creature.cpp @@ -206,7 +206,7 @@ namespace CreatureLib::Battling { _currentHealth = newHealth; if (IsFainted() && damage > 0 && battle != nullptr) { - OnFaint(nullptr); + OnFaint(source); } }