[1.07]Spells that don't work at all

Here is list of spells that don't work at all, and possible reasons why:

1) Ruin

Doesn't decrease enemy health, not heals the caster.

Also, both heal and drain visuals are shown on the target.

Reason: Probably StealUnitStat attribute is bugged.

2) Crush Spirit

Doesn't decrease enemy morale at all.

Reason: AdjustUnitStat attribute just doesn't work with CurMorale as string parameter

Solution: see Fear spell. It uses IncreaseMorale as attribute, which properly decreases moral (also ModType needs to be TacticalUnit in that case)

3) Bravery

Doesn't increase morale at all.

Reason: same as above

Solution: same above. Only difference is that using IncreaseMorale as attribute only works if there is no set duration (so it needs to work for whole combat, not just 3 rounds).

4) Berserk

Doesn't work at all.

Reason: Probably IncreaseDecreaseUnitStats attribute is non-functional

Solution: Can be worked around by using two modifiers with AdjustUnitStat attribute

5) Slow

Not workiiiing!

Reason: SetUnitStat is not functional

Solution: Can be worked around by using AdjustUnitStat attribute

6) Burning Blade

nothing

Reason: Missing parameter for AdjustUnitStat, so game doesn't know which stat to modify

Also, calculation is way off (multiplications instead adding static bonus to attack), and there is no duration set.

7) Shield of Fire

same as above

.

As a bonus, spells that work but with some bugs:

1) Confusion

Wrong calculation when applied to stack

Reason: penalty is applied per units inside group, but calculation uses total combined attack rating.

So unit with 4 guys at total attack of 40 will get penalty of -20attack to every unit inside. That means 10-20=-10 attack rating per unit, or final attack rating of -40 for group.

Also: wrong calculation when applied to strong creatures

Reason: penalty is applied to unit base attack, but calculation uses total attack rating. So if troll with strength of 30 has attack of 30, his base attack is 10 (10*300%=30). And when 1/2 of 30 is deduced from base of 10, you get -5 base attack, or negative total of -15.

2) Bunch of damage spells

shard damage bonus not working

Reason: It's not defined properly if shard bonus stat is pulled from spell target or caster (missing ValueOwner parameter in final calculation)

3) Bunch of morale spells

shard bonus not working

Reason: same as above

20,850 views 11 replies
Reply #1 Top

Looks like nice work their.

Reply #3 Top

Nice work p22! k1

Reply #4 Top

The dryness of the report makes it all the more brutal.  And damming.

"Here ya go guys, I did your work for ya."

Mind, the solutions offered may not be correct as there may be unseen underlying elements, but...

------------------------------------

6) Burning Blade

nothing

Reason: Missing parameter for AdjustUnitStat, so game doesn't know which stat to modify

Also, calculation is way off (multiplications instead adding static bonus to attack), and there is no duration set.

-------------------------------------

...makes it appear something is rotten in Denmark.

 

Reply #5 Top

Was never my idea to be dry. Not to mention "brutal and damming". :grin:

But it takes a lot of time to write something, so I tried to make a list as quickly as possible, only listing what matters.

Reply #6 Top

don't listen to him!  i thought it was sheer poetry!

I like a man that does his research!  good work!

Reply #7 Top

Geez, not only do you state what's not working, but why, and how to fix it.

Nicely done!

Reply #8 Top

Confusion is even worse than you described. Basically what it seems to be doing it multiplying their attack power by a negative number. If you cast it a second time, it'll again multiply it by a negative number... which will result in a huge boost to attack power. I noticed this because whenever I auto-resolve battles with multiple mages, they seem to spam the heck out of it non-stop. I started losing six or seven powerful units to single guys. In the pre-battle screen he'd have a tiny amount of attack power, but post-battle, it would show him with thousands of attack power. I finally realized what was happening when I tried to cast Confusion four times on the same target and saw his attack power jump through the roof. From now on, I don't research Confusion anymore, as it ruins auto-battles.

Reply #9 Top

Quoting p22, reply 5
Was never my idea to be dry. Not to mention "brutal and damming".

But it takes a lot of time to write something, so I tried to make a list as quickly as possible, only listing what matters.

Oh sure, you didn't mess around, you got straight to the point.  It was more powerful like that.

And brutal.  And damming.  :)

 

Reply #10 Top

Quoting Punjoke, reply 8
Confusion is even worse than you described. Basically what it seems to be doing it multiplying their attack power by a negative number. If you cast it a second time, it'll again multiply it by a negative number... which will result in a huge boost to attack power. I noticed this because whenever I auto-resolve battles with multiple mages, they seem to spam the heck out of it non-stop. I started losing six or seven powerful units to single guys. In the pre-battle screen he'd have a tiny amount of attack power, but post-battle, it would show him with thousands of attack power. I finally realized what was happening when I tried to cast Confusion four times on the same target and saw his attack power jump through the roof. From now on, I don't research Confusion anymore, as it ruins auto-battles.

The thing is, confusion takes attack value of the unit, mulitlies it by -0.5, and then adds it to unit attack.

Now the issue here is that value that it multiplies is total attack, while value it increases is base attack. So if unit has great strength or is a group (so has big total atack, but not so much base attack), it can deduct much more attack then it should, going into negative. When you do same thing to negative value, you can get big positive value too.

Reply #11 Top

There appears to be a lot of rounding down as well.

I looked at a silk skath

base attack 5

strength 57

so the attack value is 5 * 570% = 28.5 which rounds down to 28 + 5 for 33 attack

Confusion spell

33 * -.5 = -16.5

Round down to -16 + 5 = -11

-11 * 5.7 = -62.7, which on screen shows as -63

So I believe you are correct