Trigger OnRemove on Creature when it faints.
This commit is contained in:
parent
364bac7de7
commit
53c27d35b6
|
@ -178,6 +178,7 @@ namespace CreatureLib::Battling {
|
|||
if (_battleData.Battle.HasValue()) {
|
||||
_battleData.Battle.GetValue()->TriggerEventListener<FaintEvent>(this);
|
||||
HOOK(OnFaint, this, this, damageSource);
|
||||
HOOK(OnRemove, this);
|
||||
}
|
||||
_library->GetExperienceLibrary()->HandleExperienceGain(this, _battleData.SeenOpponents);
|
||||
if (_battleData.Battle.HasValue() && _battleData.Side.HasValue()) {
|
||||
|
|
Loading…
Reference in New Issue