Because we have no idea what $this is and what you are doing with it? Edit: It works. Just this line alone, it has no problems.
That is the relevant code, I was asking if I needed to do: PHP: $this->noDamageTicks => 300; or PHP: $this->noDamageTicks > 300;
`=` is an assignment operator. Use `===` for comparison (`===` for strict comparison, `==` for less strict comparison). http://php.net/operators.assignment http://php.net/manual/en/language.operators.comparison.php As we assume that you understand PHP operators, it is reasonable for us to think that `$this->noDamageTicks = 300;` means to set `$this->noDamageTicks` to 300 rather than checking if it is equal. Please, explain more next time. And the greater/smaller-than-or-equal-to operators are `>=` and `<=`. `=>` is a completely different operator used for array initialization. http://php.net/manual/en/language.types.array.php#language.types.array.syntax
Why are you adding semicolons behind these lines? If you do so, this means that you think that this line alone is a statement. However, `$this->noDamageTicks > 300` is only an expression, and this expression does not do anything alone. An expression is not a statement. (It can be a statement, but it will do nothing, so we don't call it a statement. Confused? Never mind)
Someone helping with the grace period on my SG repo added that, I was confused but went with it xD. I got it thanks, the ";" was a syntax error not meant to be there.