IETS - v0.5.1
    Preparing search index...

    Function Spell

    BG2 barrel re-exports.

    Generated by ts-update. Do not edit manually.

    Uses named re-exports (not export *) so esbuild can statically resolve each binding without falling back to runtime __reExport helpers for externalized .d.ts modules.

    • This action causes the active creature to cast the specified spell at the target object. The spell must currently be memorised by the caster, and may be interrupted while being cast. The caster must meet the level requirements of the spell. For the RES version of the action, the spell name can not consist of only numbers, should be written in upper case and should be no more than 7 characters long.

       IF
         See([EVILCUTOFF])
         !InParty([EVILCUTOFF])
         !HasBounceEffects([ EVILCUTOFF])//like cloak of mirroring or spell deflection
         !HasImmunityEffects([EVILCUTOFF])//
         HaveSpell(WIZARD_MAGIC_MISSILE)
         OR(2)
         !StateCheck([EVILCUTOFF],STATE_INVISIBLE)
         !StateCheck([EVILCUTOFF],STATE_IMPROVEDINVISIBLITY)
         CheckStatLT([EVILCUTOFF], 30,RESISTMAGIC)
         !Race([EVILCUTOFF],LICH)
         !Race([EVILCUTOFF],RAKSHASA)
       THEN
         RESPONSE #100
           Spell([EVILCUTOFF],WIZARD_MAGIC_MISSILE)
       END
      

      {% capture note %} Scripts can handle RES filenames with +, Dialogs and the console cannot. Same with the ~, `, ', @, $, ^, and & characters, maybe some more.

      • This action will default to a spell matching the first 7 characters in Dialogs/Console IF the 8th character isn't valid. {% endcapture %} {% include note.html %}

      Parameters

      Returns Action