skeletons..?

This commit is contained in:
GameHerobrine 2023-07-05 17:00:36 +03:00
parent ee3518a8e8
commit 38689076eb
4 changed files with 95 additions and 3 deletions

View file

@ -7,6 +7,7 @@ class Skeleton extends Monster{
$this->setHealth(isset($this->data["Health"]) ? $this->data["Health"] : 10, "generic");
$this->setName("Skeleton");
$this->ai->removeTask("TaskAttackPlayer");
$this->ai->addTask(new TaskDestroyServerPerformance());
$this->setSpeed(0.25);
$this->update();
}
@ -16,6 +17,7 @@ class Skeleton extends Monster{
}
public function updateBurning(){
return false;
if($this->fire > 0 or !$this->level->isDay()){
return false;
}