dnd 5e – Does the Fey Passage trait enable a (UA) Fairy character to escape restraints (the restrained condition)?

It depends on your DM.

Fey Passage does not inherently allow you to escape from restraints; if it did, it would say that. Squeezing is generally about moving through spaces that are too small to effectively fight in, not dealing with being tied up or handcuffed.

However, it is reasonable that handcuffs sized for a small creature are bigger than an inch across, and if you can fit your whole body through a one-inch space, clearly your hand should be able to do the same.

It’s unclear from the UA article what Fey Passage is actually supposed to represent in-world. It doesn’t actually say the fairy has innate size-changing magic, but I’m pretty sure they didn’t intend that Fairy characters can bonelessly squish through small openings like a slime or fire elemental. I assume this represents switching between a smaller pixie-sized form and a larger form that’s more suitable to dealing with the human world, something like the fairies in Disney’s Sleeping Beauty, but since the Fairy doesn’t have any sort of innate reduce magic, that seems questionable.

In any case, your DM could certainly decide that being able to fit through tiny spaces means you can use that same ability to slip out of ropes or manacles, but it would have to be their choice to allow that.

commerce – Trait ‘DrupalentityFormEntityDuplicateFormTrait’ not found, while setting up existing site

I’m in the process of attempting to setup a development environment for a Drupal site that’s been provided by a vendor. From what I’ve been told, the sites been setup and running on our UAT (Ubuntu) machine following a pretty simple set of directions:

  • git clone
  • restore database
  • start services
  • drush cim -y
  • clear cache

(these may not be the actual steps, just want I was give).

The repository is updated with all composer dependencies, so my understanding is just pulling the same code and attempting to start it should work. So from my understanding (albeit limited composer/PHP experience) there should be no need for composer install/update as the folder structure should not need any changes.

I was instructed (or hinted) that setting up using Lando would be better for our team, than attempting to:

  • setup individual services
  • using AMPPS or something along those lines

which makes sense. I don’t think there is anything really wrong with the Lando installation, but who knows at this point (PHP environments are not my strong suit).

Here is a copy of my lando.yml:

  • composer 1 is required, we were given dependencies that don’t work with composer 2
  • Drush is working with this configuration
name: drupal8
recipe: drupal8
config:
  webroot: docroot
  composer_version: '1.10.17'
tooling:
  drush:
    service: appserver
    cmd: php /app/vendor/drush/drush/drush --root=/app/docroot

After following the steps above:

  • Git clone
  • lando start (at this point lando has no issues)
  • lando db-import db/db-extract.sql (again no issues)
  • lando drush cim -y

I get the following (which is the same as if I go to the browser):

> lando drush cim -y
PHP Fatal error:  Trait 'DrupalentityFormEntityDuplicateFormTrait' not found in /app/docroot/modules/contrib/commerce/modules/number_pattern/src/Form/NumberPatternForm.php on line 16

Fatal error: Trait 'DrupalentityFormEntityDuplicateFormTrait' not found in /app/docroot/modules/contrib/commerce/modules/number_pattern/src/Form/NumberPatternForm.php on line 16
 (warning) Drush command terminated abnormally.

I found the following:

https://www.drupal.org/project/commerce/issues/3051402 (from 2015)

Which points at the issue being dependency related. So essentially we have:

  • drupal/commerce being installed as a dependency of drupal/commerce_print. It’s not actually listed in the project main dependencies (unsure if this is an issue). It’s being installed as drupal/commerce:2.24.0
  • drupal/entity and drupal/state_machine were configured as versions dev-1.x which (the link above) said was not good. I’ve since updated ONLY these two so that they are being installed as drupal/entity:1.0.0-rc2 and drupal/state_machine:1.0.0

After doing so, I’m still receiving the issue regarding PHP Fatal error: Trait 'DrupalentityFormEntityDuplicateFormTrait' not found in /app/docroot/modules/contrib/commerce/modules/number_pattern/src/Form/NumberPatternForm.php on line 16 even though I can confirm that it is actually available with 1.0.0-rc2.

I’m assuming again that the DB is up to date, since it was provided to us to match the current repository (which I can only assume is right since again, it’s working on UAT with none of these changes).

From what I’ve seen/read, these types of issues:

  • Are not actually what the problem is, and it’s actually something else but throwing this nonesensical error. If this is the case, how does one go about finding the actual error?
  • There are still issues with dependencies installed, but again the UAT environment works out of the box with git clone, so why wouldn’t these versions (in composer.lock) work locally?

Some other things that I’ve confirmed:

  • I’m able to connect to SQL through lando drush sqlc, so I assume that the $databases('default')('default') is configured correctly. Please correct me if I’m wrong, but I’ve provided the database configuration settings from my local.settings.php file:
$lando = json_decode(getenv('LANDO_INFO'), TRUE);
$databases('default')('default') = (
  'database' => $lando('database')('creds')('database'),
  'username' => $lando('database')('creds')('user'),
  'password' => $lando('database')('creds')('password'),
  'prefix' => '',
  'host' => $lando('database')('internal_connection')('host'),
  'port' => $lando('database')('internal_connection')('port'),
  'namespace' => 'Drupal\Core\Database\Driver\mysql',
  'driver' => 'mysql',
  // For whatever reason this won't work, even on docker/Lando.  Future kens problem.
  //'unix_socket' => '/opt/bitnami/mysql/tmp/mysql.sock',
);

I’ve attempted setting up the project without restoring the database. So following the steps:

  • git clone
  • lando start
  • drupal8.lndo.com:8000

which would always fail on the third step of the installation. It would result in the dependency of bartik_bartic_menu or something like that. I can start from scratch and provide more information if it’s required.

Any help would be appreciated; I apologize in advance if I’ve overlooked providing something or completely missed the mark on following some basic steps on getting Drupal up and running.

dnd 5e – Does a Warlock receive the benefit of their familiar’s Magic Resistance trait?

As the top person points out, DMs can choose to use it if they want to. That in my experience is exactly right. It’s a flavor optional rule just like other options that appear in the Dungeon Master’s Guide. Personally, I would expect that if the authors of 5e intended this never to be used for players, they would specifically state “NPC spell casters can find a pseudodragon and convince it to share MR” or something.

I’ve found Pact of the Chain to be underwhelming unless the MR is thrown in. Tasha’s has made this equation a little better w/ Investment of the Chain Master, so maybe consider that rebalance. I am only just now experimenting with IotCM.

I played a Pact of the Chain Warlock (before Tasha) and basically every other build in my party was more powerful. I was playing for RP reasons, so that’s ok, as my party was heavy RP. But from a pure power gaming standpoint I argue MR rebalances. For example, the Pseudodragon does not get invisibility, though it’s poison is nice and w/ IotCM increasing the DC this makes the choice more viable.

It also depends heavily on how much the DM relies on true spell casters. I am playing a fighter in that game w/ the Mage slayer feat. In months of play and through 5 levels I have used that feat exactly once. There are tons of monsters that have innate spell abilities that are not spells. So if the DM is throwing a mage into every battle, sure the MR would be super useful, but if it isn’t that kind of campaign or DM style it’s more like (Shrug).

Further, DMs could use a variant where the MR is a high-level invocation, which forces the player to waste an invocation slot if they want it.

The description says:

“The pseudodragon has advantage on Saving Throws against Spells and other magical Effects.”

It is also DM’s discretion as what counts as a “magic effect”. In the games I have played, “magic effects” did not include innate spell-like abilities. It had to be specifically from a spell. Which is why it depends heavily on the DM.

Why underwhelming? Maybe it was just the mix of DM style with other players. Or luck? The martial players seemed to fair better, and casters had more spells available — having 2 spells that often require concentration is risky, if you fail conc. your magic is done in 2 rounds. Now you just shoot E. blasts or you’re a lesser fighter.

I didn’t find the familiar to be very useful (before Tasha’s) beyond the RP aspect (which was more fun). Yes, it can help like other familiars. How am I different from a 1st lvl wizard again? I get that an invs. familiar is better, but it is just disadvantage to take it out. I just think for a major 3rd level ability, a better familiar needs more there. Like MR is essentially the mage-slayer feat with only the spell advantage (and not the other stuff).

However, with Tasha’s now you can Invoke your way into Adv. on concentration, and you can have the bonus action to have familiar attack. Seems like a good rebalance from the 5e authors. So then combine that with MR and maybe its overpowered.

pathfinder 1e – How would taking an “X raised by Y” trait via the Adopted trait work?

Let’s say I’m a non Half-Orc and I use Adopted take Iron Control (Half-Orc raised by Humans).

Would I have to be adopted by Half-Orcs, get disowned or otherwise lose my Half-Orc parents, then get re-adopted by Humans? Would I have to find a Half-Orc orphan, learn their ways of rage, and then get adopted by Humans with the Half-Orc so they’d raise us the same? Could I just be born abnormally angry and the Humans who adopt me decide to raise me like they would a Half-Orc? God forbid anyone tries to trace my lineage.

dnd 5e – Does a Firbolg lose their invisibility granted by the Hidden Step trait if a creature they summon attacks or deals damage?

The description of the firbolg trait Hidden Step states (VGtM, p. 107):

As a bonus action, you can magically turn invisible until the start of your next turn or until you attack, make a damage roll, or force someone to make a saving throw. Once you use this trait, you can’t use it again until you finish a short or long rest.

If you summon a creature and command it to attack and deal damage for you, does that count as you making an attack/damage roll, and therefore breaking your invisibility?

Or does the fact that your summon is its own creature mean that you didn’t make any rolls that would break your invisibility (though your summon did, while having no invisibility)?

dnd 5e – How does Steel Wind Strike interact with Heated Body special trait?

Steel Wind Strike does not trigger the Heated Body trait of the azer(s).

The Heated Body trait activates when (emphasis mine)

A creature that touches the azer or hits it with a melee attack while within 5 feet of it

The spell steel wind strike does not move the caster close to each target: the (melee) spell attacks simply happen when the spell is being cast. The spell proceeds by saying that the caster can then (only after having resolved the attacks) teleport within 5 feet of one of the targeted creatures. The Heated Body trait is not retroactive: the caster was not within 5 feet of the azer when making the attack.

If the caster were to be within 5 feet of one or more of those azers when casting the spell, the situation is different: the caster would already be within 5 feet of the azer when making the melee attack, thus activating both conditional clauses in the azer’s Heated Body trait.


As a footnote: melee attacks, with spells or weapons, do not entail having to be within 5 feet of the target. There are other spells that can make you roll a melee attack from farther away than 5 feet, amongst which spiritual weapon and thorn whip. Likewise, weapons with the reach property allow for melee attacks from a safe distance against azers or other creatures with a similar trait to Heated Body.

dnd 5e – Does the racial trait from Innistrad Provincial Origin, Stensia and the feat Tough stack?

As well, in campaigns that use feats, characters should not be allowed to choose feats that duplicate any provincial traits

The Tough feat is exactly the same as the Tough provincial trait, when you consider that you’d start with the trait and hence the section of the feat related to increasing your HP by twice your level doesn’t apply (you can’t pick up the trait half way through the campaign).

And the text clearly states that player’s should not be allowed to choose feats that duplicate traits.

It does say should not instead of can not so that leaves room for the DM to allow it if they so choose.

rust – Returning struct with trait object from function

How do I return struct with trait object from a function?

trait Foo {}

struct MyFoo;

impl Foo for MyFoo {}

struct Bar<'a> {
    foo: &'a (dyn Foo + 'a),
}

fn create_bar<'a>() -> Bar<'a> {
    let foo = MyFoo {};
    Bar { foo: &foo }
}

fn main() {
    let _mybar = create_bar();
}

Give error message.

cannot return value referencing local variable `foo`

Is there a way (and if so how) to add a conditional trait into PCGen?

Specifically what I am trying to do is add a racial trait to the Kitsune race that will replace two of the normal racial traits. I have successfully added a trait called “Naturally Skilled” into the program and it shows up/ works just fine however I need to cut out two of the other traits you would get naturally if you choose this trait.

Starting racial traits for a Kitsune:
Agile, Change Shape, Kitsune Magic, Low-Light Vision

What it should look like if I choose Naturally Skilled is:
Change Shape, Low-Light Vision, Naturally Skilled

So essentially I’m replacing both Agile and Kitsune Magic for Naturally Skilled. Is there a good way to code that in? I’ve been trying to find where in the code to put arguments like that but its like sifting through a barn full of hay for a hay colored needle.

dnd 5e – Does the duration of the invisibility from the Firbolg’s Hidden Step trait allow me to make an attack roll with advantage on the following turn?

The firbolg’s Hidden Step trait (VGtM, p. 107) is described as being active “until the start of your next turn” at most:

As a bonus action, you can magically turn invisible until the start of your next turn

I’m unclear on the exact mechanics of turn starts. For instance, if I use Hidden Step as a bonus action at the end of my turn, would the invisibility stay active for my next attack?

My initial reading was “no” as the trait would stay active from when I use it, into the next round, and drop as soon as my turn came up in the initiative order. I would then become visible, and take my action. This also gels conceptually: I can use Hidden Step to protect myself from combat for a round, or I can use it to gain advantage on an attack. But I can’t use it for both.

However, I’ve also read that advantage for invisibility is determined at the start of the round, and thus the advantage would in fact carry over to the next round’s attack, as if I was attacking from hiding or something similar.

Which is it, and what source would resolve it?