/** ustawia bonus obrony * @return bool */ public function def() { $this->defcap = true; $bonus = parent::getagi(); $tp = $bonus / 2; $bonus += $tp; $this->bonus = $bonus; $this->pass = true; return $bonus; }