City of Arabel

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Lesser Fire Storm - damage incorrect?

    Closed Bugs
    6
    7
    89
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Cadiz
      Cadiz last edited by

      Area name:
      Issue Location:
      Quest Name:
      Store Name:
      NPC Name:
      NPC Location:
      Server Version:
      Screen Shot:
      Time: https://www.timeanddate.com/

      Issue Description:

      spell description:
      Deals 1d8 fire damage/level (Reflex halves) to all targets in 10-meter radius around caster

      i have used this several times at caster level 8, so should be doing 8d8 damage, i havent done more than 15 yet.
      the damage seems bugged, i will test more but it seems too low

      Zool's rule - don't be a dick.

      1 Reply Last reply Reply Quote
      • Echo
        Echo Admin [DM] last edited by

        Relevant code here. Maybe someone can see why it doesnt work properly?

                    if (!MyResistSpell(OBJECT_SELF, oTarget, fDelay)) {
                        nDamage = d8(nCasterLevel);
        
                        if (GetMetaMagicFeat() == METAMAGIC_MAXIMIZE) {
                            nDamage = 8 * nCasterLevel;
                        } else if (GetMetaMagicFeat() == METAMAGIC_EMPOWER) {
                            nDamage = nDamage + (nDamage / 2);
                        }
        
                        nDamage = GetReflexAdjustedDamage(nDamage / 2, oTarget, GetAdjustedSpellDC(GetSpellId(), oPC, GetSpellSaveDC()), SAVING_THROW_TYPE_FIRE);
        
                        if(nDamage > 0) {
                            effect eFire = EffectDamage(nDamage, DAMAGE_TYPE_FIRE);
                            DelayCommand(fDelay, ApplyEffectToObject(DURATION_TYPE_INSTANT, eFire, oTarget));
                            DelayCommand(fDelay, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget));
        

        "You can complain if you weren't asked; you can't complain if you were asked but didn't contribute." ~ Professor.

        Wulfric 1 Reply Last reply Reply Quote
        • Wulfric
          Wulfric @Echo last edited by Wulfric

          @Echo said in Lesser Fire Storm - damage incorrect?:

          Relevant code here. Maybe someone can see why it doesnt work properly?

          
                          nDamage = GetReflexAdjustedDamage(nDamage / 2, oTarget, GetAdjustedSpellDC(GetSpellId(), PC, GetSpellSaveDC()), SAVING_THROW_TYPE_FIRE);
          

          The documentation for GetReflexAdjustedDamage states that the first parameter should be the full damage without adjustment.

          https://nwnlexicon.com/index.php/GetReflexAdjustedDamage

          Zenrin Reedhill
          Elmar Venlamin (former main)
          Horace Stokron (former main)

          1 Reply Last reply Reply Quote
          • Strife and Discord
            Strife and Discord Admin [DM] last edited by

            Correct. That is how Fireball works as well.
            Should just be:

            nDamage = GetReflexAdjustedDamage(nDamage, oTarget, GetAdjustedSpellDC(GetSpellId(), oPC, GetSpellSaveDC()), SAVING_THROW_TYPE_FIRE);
            
            1 Reply Last reply Reply Quote
            • Strife and Discord
              Strife and Discord Admin [DM] last edited by

              Should be corrected as of V6971.

              1 Reply Last reply Reply Quote
              • Puffy
                Puffy Admin [DM] last edited by

                Anyone tested this?

                @SpiffyMeister
                the real bench mark for success is if you seduce a puffy pc or npc
                @Prof-Misclick
                Puffy said "Don't you trust me? Then vote yes NERD!"
                #scaredofstrongwomen

                toportime 1 Reply Last reply Reply Quote
                • toportime
                  toportime @Puffy last edited by

                  @Puffy I just tested it and it seems to be working as intended. Here Capture.PNG

                  1 Reply Last reply Reply Quote
                  • 1 / 1
                  • First post
                    Last post