kakaroto / Beyond20

D&D Beyond Character Sheet Integration in Roll20
GNU General Public License v3.0
497 stars 145 forks source link

Staff of Striking not sending attack from the Actions tab to Roll20 #1076

Closed Eagle-Man closed 1 year ago

Eagle-Man commented 1 year ago

Describe the bug I have seen Issue #111 and the FAQ Entry which states the attack should work from the Actions Tab. I have equipped the Staff of Striking and the Actions Tab does have the attack with the correct values for a Quarterstaff, but it still only displays the Info card for the Staff in Roll 20.

I do understand the initial problem as to why the staff can't roll an attack from its sidebar or Inventory listing, but the FAQ suggests that using the Action should work, and it does not. Not sure if this is an incorrect FAQ answer or if it's just not possible to get the attack at all. Maybe something has been updated/changed in DnDBeyond for this item in the last 2 years since the #111 ?

To Reproduce Steps to reproduce the behavior:

  1. Sign in to Roll20
  2. Sign in to DnDBeyond
  3. Add the Staff of Striking to your Inventory (Equipment)
  4. Tick the Equip box beside the Staff in the Inventory (Equipment) tab, then tick the Attune box beside the Staff in the Attunement tab
  5. Change to the Actions tab and click the Melee icon, To Hit bonus box, or Damage box next to Staff of Striking
  6. See error - in Roll20, the information box for the item is displayed

Expected behavior As per the FAQ, the expected behaviour is that Beyond20 would have access to the proper information to produce the To Hit and Damage rolls as a normal weapon attack when the Staff of Striking is used from the Actions tab. It is expected that clicking the To Hit box would display a To Hit roll in Roll20 and clicking the Damage box would display a Damage roll in Roll20, and clicking the Melee icon would display both.

Browser Info (please complete the following information):

Roll20 Console:

Object
    action: "rendered-roll"
    attack_rolls: []
    attributes: {}
    character: "Drojan Vahroon"
    damage_rolls: []
    description: "This staff can be wielded as a magic quarterstaff that grants a +3 bonus to attack and damage rolls made with it.\nThe staff has 10 charges. When you hit with a melee attack using it, you can expend up to 3 of its charges. For each charge you expend, the target takes an extra 1d6 force damage. The staff regains 1d6 + 4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff becomes a nonmagical quarterstaff."
    html: "<div class=\"beyond20-message\"><div class=\"beyond20-header\"><img class=\"beyond20-character-avatar\" src=\"https://www.dndbeyond.com/avatars/8715/795/637170140278820732.jpeg?width=150&height=150&fit=crop&quality=95&auto=webp\" title=\"Staff of Striking\" width=\"37\" height=\"37\"><details open><summary><a>Staff of Striking</a></summary><table><tr><td colspan'2'><i>Staff, Very Rare (requires attunement)</i></td></tr></table><div class='beyond20-description'>This staff can be wielded as a magic quarterstaff that grants a <span class=\"ct-beyond20-custom-roll\"><strong>+3</strong><img class=\"ct-beyond20-custom-icon\" src=\"/modules/beyond20/images/icons/icon20.png\" style=\"margin-right: 3px; margin-left: 3px; border: 0px;\"></img><span class=\"beyond20-roll-formula\" style=\"display: none;\">1d20+3</span></span> bonus to attack and damage rolls made with it.</br>The staff has 10 charges. When you hit with a melee attack using it, you can expend up to 3 of its charges. For each charge you expend, the target takes an extra <span class=\"ct-beyond20-custom-roll\"><strong>1d6</strong><img class=\"ct-beyond20-custom-icon\" src=\"/modules/beyond20/images/icons/icon20.png\" style=\"margin-right: 3px; margin-left: 3px; border: 0px;\"></img><span class=\"beyond20-roll-formula\" style=\"display: none;\">1d6</span></span> force damage. The staff regains <span class=\"ct-beyond20-custom-roll\"><strong>1d6 + 4</strong><img class=\"ct-beyond20-custom-icon\" src=\"/modules/beyond20/images/icons/icon20.png\" style=\"margin-right: 3px; margin-left: 3px; border: 0px;\"></img><span class=\"beyond20-roll-formula\" style=\"display: none;\">1d6 + 4</span></span> expended charges daily at dawn. If you expend the last charge, roll a <span class=\"ct-beyond20-custom-roll\"><strong>d20</strong><img class=\"ct-beyond20-custom-icon\" src=\"/modules/beyond20/images/icons/icon20.png\" style=\"margin-right: 3px; margin-left: 3px; border: 0px;\"></img><span class=\"beyond20-roll-formula\" style=\"display: none;\">d20</span></span>. On a 1, the staff becomes a nonmagical quarterstaff.</div></details></div></div>"
    open: true
    play_sound: false
    request:
        action: "roll"
        advantage: 0
        character: {name: 'Drojan Vahroon', source: 'D&D Beyond', avatar: 'https://www.dndbeyond.com/avatars/8715/795/6371701…idth=150&height=150&fit=crop&quality=95&auto=webp', id: '71033687', type: 'Character', …}
        description: "This staff can be wielded as a magic quarterstaff that grants a +3 bonus to attack and damage rolls made with it.\nThe staff has 10 charges. When you hit with a melee attack using it, you can expend up to 3 of its charges. For each charge you expend, the target takes an extra 1d6 force damage. The staff regains 1d6 + 4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff becomes a nonmagical quarterstaff."
        item-type: "Staff, Very Rare (requires attunement)"
        name: "Staff of Striking"
        preview: "https://www.dndbeyond.com/attachments/2/741/potion.jpg"
        roll: ""
        sendMessage: true
        tags: (2) ['Damage', 'Combat']
        type: "item"
        whisper: 0
        [[Prototype]]: Object
    roll_info: []
    source: "Staff, Very Rare (requires attunement)"
    title: "Staff of Striking"
    total_damages: {}
    whisper: 0
    [[Prototype]]: Object
kakaroto commented 1 year ago

Hi. I think you read the wrong FAQ entry. It should be this one: https://beyond20.here-for-more.info/faq.html#why-doesnt-beyond20-allow-me-to-make-a-melee-attack-with-my-magic-staffs Click on the Staff and see the information displayed in the sidebar versus when you click on a regular staff. D&D Beyond does not provide the information so it is not usable that way. I hope that helps.