Fix Charge Zombie III's not starting with full health.
This commit is contained in:
parent
3e0c2d0f29
commit
4f7ad5a62f
@ -6892,7 +6892,7 @@ implements Listener
|
|||||||
if (e.getEntity().getType()==EntityType.ZOMBIE) {
|
if (e.getEntity().getType()==EntityType.ZOMBIE) {
|
||||||
Zombie z = (Zombie)e.getEntity();
|
Zombie z = (Zombie)e.getEntity();
|
||||||
if ((z.getCustomName()==null || (
|
if ((z.getCustomName()==null || (
|
||||||
z.getCustomName()!=null && (z.getCustomName().contains("II") ||
|
z.getCustomName()!=null && !z.getCustomName().contains(ChatColor.DARK_PURPLE+"") && ((!z.getCustomName().contains(ChatColor.DARK_PURPLE+"") && z.getCustomName().contains("II")) ||
|
||||||
z.getCustomName().contains("Ninja")))) && z.getHealth()>65) {
|
z.getCustomName().contains("Ninja")))) && z.getHealth()>65) {
|
||||||
//If it's a normal zombie with too much HP, something's wrong. Lower it.
|
//If it's a normal zombie with too much HP, something's wrong. Lower it.
|
||||||
z.setHealth(z.getHealth()/2);
|
z.setHealth(z.getHealth()/2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user