mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
pigmans fire resistance added
This commit is contained in:
parent
c60ccb4f1b
commit
535cba9f6f
2 changed files with 24 additions and 16 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue