getter for attackInterval
Test for defaultweapon.
The cooldown in defaultweapon has been moved to utils for everyone to use. The cooldown method in defaultweapon has been modified to work under the new conditions