Please find attached Critical Update V2013-05-18 that fixes the crashing problem with enemy heroes attempting to cast the Shroud spell (thanks both to Jorko80 and Sir Whiskers).
I've also made some minor improvements including changing Griffin and Dragon Eggs so that they give 1-2 units (since it didn't seem to really be working very well the other way - thanks to Sir Whisker's comments here). ***EDIT*** Oh yah, don't forget that you need to reacquire the container for this change to take effect. For example, if you have 10 Griffin Eggs, you'll need to buy 1 more and then this change will work or if you have 2 Black Dragon Eggs, buy another and then you'll see the correct text tip (you'll also notice that the tips are correct in the shops).
I also made a change to the AI spell damage score calculation to include unit kills in the score so that they focus more on killing your troops.
Lastly, I made some minor changes to Sleem and Zerock (some of which were based on Jorko80's comments). Note that if you acquired a spirit skill that now has a higher level requirement (or different prerequisites) that it will disappear until you again meet that criteria. So for example if you had Evil Shoal level 4 with its Sleem Level requirement of >7 you now have to meet the new Sleem Level requirement of >9 before this ability will reappear. You do not have to pick the ability again during an upgrade as you've already selected it, it's just disabled since you no longer meet the requirements.
We'll see how these changes go, the big part was fixing the crashing bug with Shroud.
Here is the detailed list of changes:
Version: Beta 2013-05-18
- *.ATOM
- SLIME.ATOM
- Lowered the level requirements for Poisonous Spit levels 5-7 to be 8, 11, and 14 was (9, 15, and 19)
- Increased the level requirements for Poisonous Spit Poison levels 1-2 to be 9 and 16 (was 6 and 12)
- Increased the level requirements for Evil Shoal levels 4-7 to be 9, 12, 15, and 20 (were 7, 10, 14, and 19)
- Lowered the level requirements for Poison Cloud levels 3-5 to be 8, 14, and 22 (were 11, 16, and 24)
- THE_ROCK.ATOM
- Added level requirements for Wall levels 4-5 to be 10 and 16 (no level requirements before)
- *.LNG
- ENG_ITEMS.LNG - updated description for Griffin and Dragon Eggs so that they are now just like the other containers (and have a range)
- *.LUA
- ARENA.LUA
- Fixed error with Shroud spell that was causing a crash when cast by heroes such as Martin Vodash and Dirty Butory (thanks to Jorko80 and Sir Whiskers for pointing this out!)
- Added AI spell function for Shroud so that it selects the optimal location to cast (was using the generic bonus spell code before, which is where the above error was as well)
- Changed score for AI damage spells to include number of kills so that the AI focuses more on killing your units
- ITEM_USE.LUA
- Updated objuse_spawn_troop so that it loops through the troop ranges for each container used (this provides better variability for containers)
- *.TXT
- ITEMS_MONSTER.TXT
- Fixed Griffin and Dragon Eggs so that it is no longer 2 eggs per unit (thanks to Sir Whiskers for pointing this out!)
- Griffin and Dragon Eggs now just have a range of 1-2 and due to the change in objuse_spawn_troop above, it will give an average of 1.5 units per egg.
Please keep the comments coming if you find an error or can think of an improvement - thanks!
Matt
/C\/C\
Please see the first or last post on where to get the latest version - thanks!