assignGear fix

Replaced player with _unit.
Player can be nil when script is called and also wouldn't affect AI.