parent
c6d814e886
commit
c27b87b01a
src/Battling/Models
|
@ -206,7 +206,7 @@ namespace CreatureLib::Battling {
|
|||
_currentHealth = newHealth;
|
||||
|
||||
if (IsFainted() && damage > 0 && battle != nullptr) {
|
||||
OnFaint(nullptr);
|
||||
OnFaint(source);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue