skeletons will attack the player

This commit is contained in:
GameHerobrine 2024-03-24 02:48:40 +03:00
parent 3b15c26b0c
commit db5ad749d2
6 changed files with 163 additions and 4 deletions

View file

@ -8,11 +8,11 @@ class Skeleton extends Monster{
$this->setName("Skeleton");
$this->ai->removeTask("TaskAttackPlayer");
$this->setSpeed(0.25);
//$this->ai->addTask(new TaskDestroyServerPerformance());
$this->ai->addTask(new TaskRandomWalk(1.0));
$this->ai->addTask(new TaskLookAround());
$this->ai->addTask(new TaskSwimming());
$this->ai->addTask(new TaskRangedAttack(1.0, 16));
}
public function getAttackDamage(){