Auto-translated
function defeatFenix(hero)
if GetObjectiveState('fenix') == OBJECTIVE_UNKNOWN then
SetObjectiveState('fenix', OBJECTIVE_ACTIVE)
startThread(checkFenix)
elseif GetObjectiveState('fenix') == OBJECTIVE_COMPLETED then
Trigger(4, 'seer', nil)
AddHeroCreatures(hero, CREATURE_ANGEL, 45)
end
end
function checkFenix()
while 1 do
if not IsObjectExists('Phoenix1') then
SetObjectiveState('fenix', OBJECTIVE_COMPLETED)
break
end
sleep(10)
end
end
SetObjectEnabled('seer', nil)
Trigger(4, 'seer', 'defeatFenix')
```
To make this work, move the quest to the main list, name it fenix, and also set IsInitialyActive and IsInitialyVisible = false, Kind = MANUAL, and name the hut itself seer.