怪物死亡触发器

This commit is contained in:
flswld
2023-03-27 19:43:41 +08:00
parent f1a14ccf0e
commit f4802e1448
6 changed files with 151 additions and 9 deletions

View File

@@ -132,7 +132,7 @@ func (g *GameManager) CombatInvocationsNotify(player *model.Player, payloadMsg p
}
g.EntityFightPropUpdateNotifyBroadcast(world, target)
if currHp == 0 && target.GetEntityType() == constant.ENTITY_TYPE_MONSTER {
g.KillEntity(scene, target.GetId(), proto.PlayerDieType_PLAYER_DIE_GM)
g.KillEntity(player, scene, target.GetId(), proto.PlayerDieType_PLAYER_DIE_GM)
}
combatData, err := pb.Marshal(evtBeingHitInfo)
if err != nil {