City of Arabel
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Lesser Fire Storm - damage incorrect?

    Scheduled Pinned Locked Moved Closed Bugs
    7 Posts 6 Posters 221 Views
    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.
    • CadizC
      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
      • EchoE
        Echo
        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.

        WulfricW 1 Reply Last reply Reply Quote
        • WulfricW
          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

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

          1 Reply Last reply Reply Quote
          • Strife and DiscordS
            Strife and Discord
            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 DiscordS
              Strife and Discord
              last edited by

              Should be corrected as of V6971.

              1 Reply Last reply Reply Quote
              • PuffyP
                Puffy
                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

                toportimeT 1 Reply Last reply Reply Quote
                • toportimeT
                  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