ai changes

This commit is contained in:
GameHerobrine 2022-12-19 20:41:12 +03:00
parent 4835c15747
commit 5a3aeecd93
9 changed files with 196 additions and 98 deletions

View file

@ -17,7 +17,9 @@ abstract class Living extends Entity implements Damageable{
public function update(){
$this->ai->updateTasks();
if($this->idleTime <= 0) {
$this->ai->updateTasks();
}
parent::update();
}