pigmans fire resistance added

This commit is contained in:
GameHerobrine 2023-01-14 16:20:37 +03:00
parent c60ccb4f1b
commit 535cba9f6f
2 changed files with 24 additions and 16 deletions

View file

@ -16,4 +16,12 @@ class PigZombie extends Monster{
[GOLD_INGOT, 0, mt_rand(0,1)]
];
}
public function harm($dmg, $cause = "generic", $force = false)
{
if($cause === "fire" || $cause === "lava" || $cause === "burning"){
return false;
}
return parent::harm($dmg, $cause, $force);
}
}