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