Bug with set_max_health()
LadyCailin opened this issue ยท 2 comments
CMDHELPER-2630 - Reported by Hekta on 2013-04-08 10:06:44 UTC
When a mob has more health than normal, the amount of damage is modified.
bind(entity_damage_player, null, null, @event, console(@event))
/test = spawn_mob(zombie, 1, pcursor())
When I take damage :
2013-04-08 11:47:43 [INFO] CommandHelper: {amount: 2, cause: ENTITY_ATTACK, damager: ZOMBIE, data: , event_type: entity_damage_player, id: 165896, macrotype: entity, player: Hekta}
/test = assign(@id, array_get(spawn_mob(zombie, 1, pcursor()), 0)) set_max_health(@id, 500) set_entity_health(@id, 100)
When I take damage :
2013-04-08 11:47:57 [INFO] CommandHelper: {amount: -45, cause: ENTITY_ATTACK, damager: ZOMBIE, data: , event_type: entity_damage_player, id: 166159, macrotype: entity, player: Hekta}
...
I hit it several times
2013-04-08 11:47:57 [INFO] CommandHelper: {amount: -44, cause: ENTITY_ATTACK, damager: ZOMBIE, data: , event_type: entity_damage_player, id: 166159, macrotype: entity, player: Hekta}
...
...
2013-04-08 11:47:57 [INFO] CommandHelper: {amount: -38, cause: ENTITY_ATTACK, damager: ZOMBIE, data: , event_type: entity_damage_player, id: 166159, macrotype: entity, player: Hekta}
...
...
...
2013-04-08 11:47:57 [INFO] CommandHelper: {amount: -8, cause: ENTITY_ATTACK, damager: ZOMBIE, data: , event_type: entity_damage_player, id: 166159, macrotype: entity, player: Hekta}
etc...
2013-04-08 11:47:57 [INFO] CommandHelper: {amount: 2, cause: ENTITY_ATTACK, damager: ZOMBIE, data: , event_type: entity_damage_player, id: 166159, macrotype: entity, player: Hekta}
...
2013-04-08 11:47:57 [INFO] CommandHelper: {amount: 4, cause: ENTITY_ATTACK, damager: ZOMBIE, data: , event_type: entity_damage_player, id: 166159, macrotype: entity, player: Hekta}
Comment by jb_aero on 2013-05-05 18:36:32 UTC
Appears to be a CraftBukkit issue: Bukkit/CraftBukkit#1155