If this is not turn based have an enemy type that switches color every 'x' seconds and have the player as is only be able to attack one color. Make this sword the answer to those enemies by always being the color the enemy is weak to.