Skip to content

Commit 88ea9a3

Browse files
committed
Remove obsolete flag from CheckResistSpell.
1 parent f7fd4ab commit 88ea9a3

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

NWN.Anvil/src/main/API/Objects/NwCreature.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,18 @@ public void BroadcastSkillRoll(int diceRoll, NwSkill skill, int modifier, int di
14931493
creature.BroadcastSkillData(data);
14941494
}
14951495

1496-
[Obsolete("Use SpellResistanceCheck instead.")]
1496+
/// <summary>
1497+
/// Performs a spell resistance check between this creature (caster) and the specified target.
1498+
/// </summary>
1499+
/// <param name="target">The target object to perform the spell resist check.</param>
1500+
/// <returns>
1501+
/// <see cref="ResistSpellResult.NonPlayerSpell"/> if spell cast is not a player spell.<br/>
1502+
/// <see cref="ResistSpellResult.Resisted"/> if spell is resisted.<br/>
1503+
/// <see cref="ResistSpellResult.ResistedMagicImmune"/> if spell is resisted via magic immunity.<br/>
1504+
/// <see cref="ResistSpellResult.ResistedSpellAbsorbed"/> if spell is resisted via spell absorption.
1505+
/// </returns>
1506+
/// <remarks>For more nuanced control on spell resistance checks, consider using <see cref="SpellResistanceCheck"/>.</remarks>
1507+
/// <seealso cref="SpellResistanceCheck"/>
14971508
public ResistSpellResult CheckResistSpell(NwGameObject target)
14981509
{
14991510
return (ResistSpellResult)NWScript.ResistSpell(this, target);

0 commit comments

Comments
 (0)