applyConfusedBehaviour

final Unit applyConfusedBehaviour(GameEntity entity, Long durationMillis)

Applies expiring ConfusedBehaviour to entity.

Parameters

entity

The entity to apply the behaviour to.

durationMillis

The duration for which ConfusedBehaviour should last. If null, the new behaviour is permanent.