Auto-translated
Passing the turn to a blinded creature is also possible. However, after a few minutes of inactivity, the turn is passed to the next one.
Here's how I slightly modified it so that the turn isn't given to particularly active units:
Added 1 minute ago
I can't guarantee that it will always work, but just in case, I tested it on dogs.
Here's how I slightly modified it so that the turn isn't given to particularly active units:
function BlindAttackerUnit()
repeat sleep() until combatStarted()
local unit = GetCreatures(DEFENDER)[0]
local last_mana = GetUnitManaPoints(unit);
SetUnitManaPoints(unit, 100);
repeat sleep() until GetUnitManaPoints(unit) == 100
local player_unit = GetCreatures(ATTACKER)[0]
setATB(player_unit, 0)
UnitCastAimedSpell(unit, SPELL_BLIND, player_unit);
sleep(1);
SetUnitManaPoints(unit, last_mana);
end
startThread(BlindAttackerUnit)Added 1 minute ago
I can't guarantee that it will always work, but just in case, I tested it on dogs.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4