dnd 5e – Can you make a bonus-action attack from Two-Weapon Fighting before you take your action?

You can’t take the bonus-action attack before the Attack action (in which you attack with a one-handed light weapon), because the bonus-action attack is conditional upon you taking that action.

Jeremy Crawford addresses this on Twitter here (prompted by the wording of the Shield Master feat):

Clarification about bonus actions: if a feature says you can do X as a bonus action if you do Y, you must do Y before you can do X. For Shield Master, that means the bonus action must come after the Attack action. You decide when it happens afterward that turn.

This contradicts a previous ruling by him via Twitter, in which he stated that, “As with most bonus actions, you choose the timing, so the Shield Master shove can come before or after the Attack action.” Crawford acknowledges this change here:

In 2017, I changed the ruling on bonus action timing because the old ruling was illogical. The original ruling failed to account for the fact that X relying on Y is a form of timing. The new ruling corrects that oversight.

And further explains his reasoning here:

The old ruling on bonus action timing didn’t quiet questions on that timing. Instead, the illogical ruling fueled questions, and it even inadvertently led some fans to think our choice of words like “if” or “when” had super-precise meanings in bonus actions. They don’t.


As you quote, the Two-Weapon Fighting rule says:

When you take the Attack action and attack with a light melee weapon that you’re holding in one hand, you can use a bonus action to attack with a different light melee weapon that you’re holding in the other hand. You don’t add your ability modifier to the damage of the bonus attack, unless that modifier is negative.

The bonus-action attack is conditional upon you using the Attack action and attacking with a qualifying weapon. As such, you can’t use your bonus-action attack before you’ve taken the action that qualifies you for it.

bash – Can the regex matching pattern for awk be placed above the opening brace of the action line, or must it be on the same line?

I’m studying awk pretty fiercely to write a git diffn implementation which will show line numbers for git diff, and I want confirmation on whether or not this Wikipedia page on awk is wrong:

(pattern)
{
   print 3+2
   print foobar(3)
   print foobar(variable)
   print sin(3-2)
}

Output may be sent to a file:

(pattern)
{
   print "expression" > "file name"
}

or through a pipe:

(pattern)
{
   print "expression" | "command"
}

Notice (pattern) is above the opening brace. I’m pretty sure this is wrong but need to know for certain before editing the page. What I think that page should look like is this:

/regex_pattern/ {
    print 3+2
    print foobar(3)
    print foobar(variable)
    print sin(3-2)
}

Output may be sent to a file:

/regex_pattern/ {
    print "expression" > "file name"
}

or through a pipe:

/regex_pattern/ {
    print "expression" | "command"
}

Here’s a test to “prove” it. I’m on Linux Ubuntu 18.04.

test_awk.sh

gawk 
'
BEGIN
{
    print "START OF AWK PROGRAM"
}
'

Test and error output:

$ echo -e "hey1nhellonhey2" | ./awk_super_simple.sh
gawk: cmd. line:3: BEGIN blocks must have an action part

But with this:

test_awk.sh

gawk 
'
BEGIN {
    print "START OF AWK PROGRAM"
}
'

Test and output (it works fine!):

$ echo -e "hey1nhellonhey2" | ./awk_super_simple.sh
START OF AWK PROGRAM

Another example (fails to provide expected output):

test_awk.sh

gawk 
'
/hey/ 
{
    print $0
}
'

Output:

$ echo -e "hey1nhellonhey2" | ./awk_super_simple.sh
hey1
hey1
hello
hey2
hey2

(passes):

gawk 
'
/hey/ {
    print $0
}
'

Output:

$ echo -e "hey1nhellonhey2" | ./awk_super_simple.sh
hey1
hey2

How do form #states interact with dialog action buttons, if at all?

A dialog can be fired by a link formatted as such:

<a class="use-ajax" 
    data-dialog-options="{&quot;width&quot;:400}" 
    data-dialog-type="modal" 
    href="http://drupal.stackexchange.com/some/path">
    Some path displayed in modal dialog.
</a>

If the contents of /some/path are a form, then drupal takes its action buttons and drops them into a “footer” <div class="ui-dialog-buttonset"></div> in the dialog. This seems to take into account the initial state of the buttons — so if submit has the disabled attribute by default then the corresponding UI button gets the .is-disabled class applied. The “real” form action buttons are rendered but set to display: none.

However, I’ve got #states set up on my submit button with

$form('actions')('submit')('#states') = (
  'disabled' => (
    ':input(name="field_fivestar_rating(0)(rating)")' => (
      (
        ('value' => '-'),
        ('OR'),
        ('value' => '0'),
      ),
    ),
  ),
);

The “real” form submit button is updated correctly according to its #states attribute, but the same cannot be said for the corresponding dialog button. It seems to be static based on the initial state of the submit button.

Is this expected behavior? If so, is this something that deserves an issue in the queue? Seems like an oversight and usability concern.

mysql 5.6 – Error Code: 1054. Unknown column ‘action’ in ‘field list’

I had created before update trigger as below

CREATE TRIGGER assets_audit
BEFORE UPDATE ON assets
FOR EACH ROW
INSERT INTO assets_history
SET action = ‘update’,
id=OLD.id,
categoryid=OLD.categoryid,
adminid=OLD.adminid
clientid=OLD.clientid,
userid=OLD.userid,
manufacturerid=OLD.manufacturerid,
modelid=OLD.modelid,
supplierid=OLD.supplierid,
statusid=OLD.statusid,
purchase_date=OLD.purchase_date,
warranty_months=OLD.warranty_months,
tag=OLD.warranty_months,
name=OLD.name,
serial=OLD.serial,
notes=OLD.notes,
locationid=OLD.locationid,
customfields=OLD.customfields,
qrvalue=OLD.qrvalue;

Trying to update asssets table using below query
update assets set name=”super40″ where categoryid=’2′

But im getting below issue
Error Code: 1054. Unknown column ‘action’ in ‘field list’

pathfinder 1e – Is there a way to charge as a move action (or lower)?

Since you say in your other post that 3.5e is allowed, I’m going to make a suggestion from there.

Spiritual Totem barbarian ACF (Complete Champion p.46), with the Lion totem, gains the Pounce ability at level 1, in place of Fast Movement.

Pounce (Ex): When a creature with this special attack makes a charge, it can follow with a full attack – including rake attacks if the creature also has the rake ability.

This isn’t exactly “charging as a move action”, but does allow a Full Attack after a charge.

magento2 – Request validation failed for action “ApriljuneTestimonialControllerIndexAddInterceptor

Here is the controller that is responsible for adding the form data from frontend to multiple database tables. it was all working fine unless i have performed the magento/bin di:compile after that it is not working fine.

I have another section for admin that required to run magento/bin di:compile so before that section is was all working fine as i have compiled it start giving me the error:

(2020-05-21 11:36:09) main.DEBUG: Request validation failed for action "ApriljuneTestimonialControllerIndexAddInterceptor" () ()

tables – Ideas for *intuitive* bulk action pattern for a medical CRM?

The “bulk action” dropdown sounds fairly similar to what’s seen in gmail so that seems like a safe bet that a large chunk of your users have seen it before and will expect that behaviour. A clear label and potentially highlighting it when users select more than one patient would be even better.

You should test that against your column header action bar idea. Although I’m not certain why the action bar would need to replace the column headers. Couldn’t you have both?

Side little bit of food for thought, what are the users needs for bulk emailing patients? Bulk email systems usually have someone send something accidentally or confusing at least once, we’ve all seen it. Remember if you’re designing a system that can message a ton of people those people all also your users. Anything we can do to safeguard them from frustrating, confusing or erroneous messages?

dnd 5e – Does using an Owl’s “Talons” action while Wild Shaped count as taking the Attack action?

The “Talons” action is the Talons action, not the Attack action.

However, the owl can take the Attack action and use its talons to make an attack

Note that all capitalization in the preceding sentences is significant.

The Monster Manual (p. 10) is clear that the actions listed in the stat block of a creature are additional to and different from the actions available to all creatures in the Player’s Handbook. So the Talons action is the Talons action.

As such, if they take the Talons action they cannot:

  1. Use Flurry of Blows because it isn’t the Attack action,
  2. Use Extra Attack (if they have one) because it isn’t the Attack action,
  3. Use the Monk’s unarmed strike damage because Talons is a “melee weapon” and, as such, is neither an unarmed strike nor or a monk weapon.

The owl can, of course, take the Attack action and use its talons to make attacks. This would allow Extra Attack and Flurry of Blows but not the monk damage. It can use its talons to make an attack because talons are a weapon available to owls in the way that a sword or spear is available to creatures with hands if they have a sword of spear.

The wildshaped druid/monk is better off ignoring the Talons and simply using the Attack action to make unarmed strike(s) – these get all of the above benefits with the only downside being that on very, very rare occasions you might prefer to do slashing rather than bludgeoning damage although, offhand, I can’t recall when this would ever come up.

So, since there appears to be no difference between the Talons action and an Attack action using talons to attack, why make the distinction? Well, for the owl there isn’t a difference but for other creatures (e.g. those with the Multiattack action see Can you benefit from Bladesong while Shapechanged into a Marilith?, or multi-part actions like the Giant Toad’s bite – if you take the Attack action you can’t start the grapple that is part of the Bite action) it does make a difference. I venture to suggest that this was a deliberate design decision to stop the sorts of exploits that high-level characters can do with things like wildshape – a giant toad that has one opportunity per turn to start a grapple is one thing, one that has three or four?

dnd 5e – How is the damage calculated for the kraken’s Fling action?

Among my group, there seem to be multiple ways of interpreting the damage from the kraken’s Fling action:

Fling. One Large or smaller object held or creature grappled by the kraken is thrown up to 60 feet in a random direction and knocked prone. If a thrown target strikes a solid surface, the target takes 3 (1d6) bludgeoning damage for every 10 feet it was thrown. If the target is thrown at another creature, that creature must succeed on a DC 18 Dexterity saving throw or take the same damage and be knocked prone.

The distance for the damage calculated is in question:

If the creature is thrown an intended 60 feet but interrupted say 30 feet in by a solid surface, is the distance then considered to only be 30 feet for the damage calculation? This would seem to be supported by the “up to 60 feet” phrasing, but also would then imply that the creature thrown had less momentum from an interpretation of physics simply due to a wall existing in the way.

Or would the damage be considered from the full 60 feet of the initial throw? The “up to 60 feet” would assert an individual could be thrown less distance by the kraken’s intent, randomly, DM, etc. Then, the damage in question could be based on this.

The interpretation of the “up to” is up to DM discretion. Which of these interpretations is correct for the kraken’s Fling action?