public void OnActorDead(ActorController actor, ActorController killer) { if (actor == null) { return; } if (actor.ActorType == ActorController.EActorType.EPlayer) { if (actor.FactionType == ActorController.EFactionType.EBlue) { this.AddActorCombatLog(actor); } this.OnPlayerDead(actor); } else if (actor.ActorType == ActorController.EActorType.EPet) { if (actor.FactionType == ActorController.EFactionType.EBlue) { this.AddActorCombatLog(actor); } this.OnPetDead(actor); } else { this.OnMonsterDead(actor); } if (this.KillActorEvent != null && killer != null) { this.KillActorEvent(killer.GetName(), actor.GetName(), actor.FactionType == ActorController.EFactionType.EBlue); } }