[.92][BUG] BloodCurse Spell

The bloodcurse spell does not function the way it should. I think I know the fix, but I don't have the code to fix it. The problem lies in target type and the caster type. The code apply to caster only works if the CreatureTargetType is the same as the caster themselves. Since the caster is not a city the ApplyToCaster bonus is not working. There needs to be an exception put in the code to allow one to get around the TargetType when boolean value ApplyToCaster is implemented.

Hope this helps track down that particular bug.

7,390 views 7 replies
Reply #1 Top

An update for this particular bug. The fact is that the

<ApplyToCaster>

modifier is not functioning as intended. The modifier changes the "Target" of the spell and thus all the tags that are associated with "TargetUnit" and "TargetCity" are not directed specifically to the caster. Thus, any spell that has the tag

<ApplyToCaster>

the target for that particular modifier of the spell will be the caster and you cannot use any data to the spells original target. This is why bloodcurse does not work.

(Syphon Strength) is another spell that uses the <ApplyToCaster> tag and "TargetUnit" within the calculations. All other spells refer to the casting unit.

Reply #2 Top

Just wanted to bring this up again. Is this one the bug list?

Reply #3 Top

Was wondering about BloodCurse and how it worked when you remove the enchantment. The Sovereign is still unable to heal naturally or with "Regeneration" enchantment heals after BloodCurse is removed. Is this as designed? 

Reply #4 Top

The only part of the spell that is not functioning appropriately is the increase in the casters hitpoints. It is supposed to kill half the population of a city and give you that as hitpoints and stop you from regenerating. Everything else is working except for the increase in hitpoints, which the error is about the ApplyToCaster and the target switch of the spell in doing such a tag.

Reply #5 Top

This will probably have to wait for patch 1.  But it is on the list!

Reply #6 Top

In the interim, is it worth modifying/removing the spell? Having a half-broken spell doesn't seem like a good idea for 1.0.

Reply #7 Top

The spell is not an easy one to aquire in the first place. It is an epic quest reward at the moment. I can provide a modded fix for the moment, instead of getting half the population in hitpoints I could say triple the spell casters current hitpoints instead. If it is fixed properly, Stardock could provide some rather fun spells as DLC. Depending on the fix, readjustments to present spells may be needed to provide better information.