Fix tamable monster notification showing when hero already has a pet or his level is too high or too low

Вынеси создание переменной вне ```for```.