Ticket #2160: undeletable_hero_v1.patch
File undeletable_hero_v1.patch, 617 bytes (added by , 8 years ago) |
---|
-
binaries/data/mods/public/maps/scripts/Regicide.js
Trigger.prototype.SpawnRegicideHero = fu 87 87 if (!hero.length) 88 88 continue; 89 89 90 90 hero = hero[0]; 91 91 92 let cmpHealth = Engine.QueryInterface(hero, IID_Health); 93 cmpHealth.SetUndeletable(true); 94 92 95 if (isShip) 93 96 { 94 97 let cmpUnitAI = Engine.QueryInterface(hero, IID_UnitAI); 95 98 cmpUnitAI.Garrison(spawnPoint); 96 99 }