NWN2Wiki
Line 38: Line 38:
   
 
The description ''should'' have the Target line as: "One creature/level in a Large area" too, to show the area somewhere.
 
The description ''should'' have the Target line as: "One creature/level in a Large area" too, to show the area somewhere.
  +
  +
Line 89: This should have "d8(2) + nBonus;", because nCasterLvl is capped.
   
 
Line 91: The second parameter of ApplyMetamagicVariableMods() should use 16 + nBonus, since the bonus is capped at +30.
 
Line 91: The second parameter of ApplyMetamagicVariableMods() should use 16 + nBonus, since the bonus is capped at +30.

Revision as of 16:21, 4 February 2007

Is curemoderatemass
Cure Moderate Wounds, Mass
Spell Information
Spell level : Innate level: 6, Bard: 6, Cleric: 6, Druid: 7
School : Conjuration
Components : Verbal and Somatic
Range : Close
Target/Area : One creature / level
Duration : Instantaneous
Save : None
Spell resistance : No

Description

This spell heals 2d8 points of damage +1 point per caster level (maximum +30). The effect is centered on you, and targets are affected in the following order of priority: you, your party, friendly creatures sorted by distance from you. This spell can be spontaneously cast.

Bug Notes

General: The description misses out these parts: That it has spell resistance, a fortitude save (although this is probably incorrect; see below) and its area radius (also see below).

The entire CureFaction() and other parts do not implement the description correctly. In fact, the current spell will kill your own undead first!

The spell would be better to use this list of action:

  • OBJECT_SELF if we are within RADIUS_SIZE_LARGE of the target location, unless undead.
  • Faction members within the area, using GetFirst/NextObjectInShape() and a check for GetFactionEqual(). Will not do anything to allied undead. Will not do self twice (ie; target isn't the caster)
  • Other friendly creatures, using GetFirst/NextObjectInShape() and a check for spellsIsTarget(oTarget, SPELL_TARGET_ALLALLIES, OBJECT_SELF) to apply healing, unless they are undead.
  • Undead enemy creatures, using GetFirst/NextObjectInShape(), and making sure they are checked with spellsIsTarget(oTarget, SPELL_TARGET_SELECTIVEHOSTILE, OBJECT_SELF), thus only true enemies are harmed.

We can also assume that "sorted by distance from you" is a mistake - since it can be targeted at a point, it should be removed to make the spell more simple (GetFirst/NextObjectInShape() doesn't work on a range-basis).

A better sentence would be: "The effect is centered on a chosen location, and targets are affected in the following order of priority: you, your party, friendly creatures, enemy undead."

The description should have the Target line as: "One creature/level in a Large area" too, to show the area somewhere.

Line 89: This should have "d8(2) + nBonus;", because nCasterLvl is capped.

Line 91: The second parameter of ApplyMetamagicVariableMods() should use 16 + nBonus, since the bonus is capped at +30.

Line 94: This spell, for some reason, does a fortitude save. This is noted in the description, but every other normal Cure Wounds spell (and all versions of Cure Wounds in 3.5E) is will saved based, not fortitude save based, so this must be an oversight.

Line 115: These set of lines do not do metamagic correctly. The code seems to use nHP but nHP isn't altered for empower / maximisation, and uses nCasterLvl instead of nBonus for the bonus. This code would work (which is similar to the vs. undead section):

nHP = d8(2) + nBonus;
//Enter Metamagic conditions
nHP = ApplyMetamagicVariableMods(nHP, 16 + nBonus);

//Set healing effect
eHeal = EffectHeal(nHP);