Does this magic item require that you already have the ability to use the feature that it modifies?

Last night the party was adventuring in Curse of Strahd.
In the previous session they had acquired the module-specific magic item

This item can be attuned to by a good creature. In last night’s session an NPC was able to attune to the item, unlocking its powers (emphasis mine):

Augury. You can use an action to cast an augury spell from the icon, with no material components required. Once used, this property can’t be used again until the next dawn.

Bane of the Undead. You can use the icon as a holy symbol while using the Turn Undead or Turn the Unholy feature. If you do so, increase the save DC by 2.

Cure Wounds. While holding the icon, you can take an action to heal one creature that you can see within 30 feet of you. The target regains 3d8 + 3 hit points, unless it is an undead, a construct, or a fiend. Once used, this property can’t be used again until the next dawn.

If I am reading this item correctly, anyone that can take an action can use Augury or Cure Wounds feature. The power is written in the format, ‘if you have an action, you use the action and the item grants you this ability’, even if you could not previously cast an augury or cure wounds, or even if you did not have Spellcasting ability.

However, it appears to me that what is granted by the Bane of the Undead feature is not the ability to Turn Undead, but rather a modification of that ability (+2 DC, use this as a holy symbol), to creatures that already have that feature. That is, in this sense "can use" and "can take" are granting you the ability, but "while using" requires that you already have the ability to do so. (This was important since the NPC in question did not inherently have the Turn Undead feature).

Am I interpreting this language correctly?

A good answer will show a similar example in a less ambiguous case. While this question is specifically about the 5e Curse of Strahd, I am open to an answer showing how that particular item ‘is supposed to work’ in a previous version of the module.

Protection from Evil cast on a player who’s already under a Charm Person spell?

I’m currently playing a D&D 3.5 campaign and in our last session our fighter has fallen under a Charm Person spell cast by an evil enemy spellcaster. My character is a Cleric and has access to both Protection from Evil and Magic Circle against Evil. If I cast the former upon the figher, or the other one so that the fighter is included in the affected area, what happens? I’m not sure how to interpret the spell’s description. From the PHB (emphasis mine):

The barrier blocks any attempt to possess the warded creature (by a magic jar attack, for example) or to exercise mental control over the creature (including enchantment (charm) effects and enchantment (compulsion) effects that grant the caster ongoing control over the subject, such as dominate person). The protection does not prevent such effects from targeting the protected creature, but it suppresses the effect for the duration of the protection from evil effect.

Therefore, it seems that once the spell is cast the target becomes immune to the mental influence of the evil entity. However, the spell description also says that (emphasis mine)

If the protection from evil effect ends before the effect granting mental control does, the would-be controller would then be able to mentally command the controlled creature. Likewise, the barrier keeps out a possessing life force but does not expel one if it is in place before the spell is cast.

It is clear that the spell does not nullify Charm Person, but the controller seems (at least) to be unable to give orders to the targeted creature. What about the order given before Protection from Evil is cast? There are three possible interpretations:

  1. Nothing happens, as the target was already Charmed before;
  2. The creature is still Charmed but the evil guy cannot give new orders (as Protection suppresses the effects of Charme);
  3. Charme Person is stopped for the duration of the Protection spell, and my fighter is free to act as he pleases.

Thank you for your input!

If your class gives you a choice of skills to be trained in, can you choose a skill you’re already trained in to gain a free skill choice?

I know that if a class would make you trained in a skill you’re already trained in, you can select another skill to become trained in.

My question is about classes that let you pick between certain skills to be trained in, for example the Fighter lets you pick between Acrobatics and Athletics.

If I’m already trained in Athletics because of my background, can I choose Athletics as my Fighter skill, so that I gain another free skill choice, thus having 4+Int skill choices, instead of the usual 3+Int for a Fighter? Or would I be forced to choose Acrobatics?

Headers already sent error with get_template_part in REST API call

Crosspost from StackOverflow

I’ve looked at multiple other questions about this warning (Headers already sent…etc) and this thorough explanation, but I’m not finding a solution for the circumstances I’m dealing with:

  1. I have a custom WordPress REST API endpoint that returns the output of get_template_part. When I just call get_template_part normally on a page, there’s no warning. It only appears when it runs in register_rest_route‘s callback.
  2. I am also fetching data from an external API using this library. The error started when I started making these requests. I’ve tried making the request both inside and outside the template part, the latter either within register_rest_route‘s callback or as an init action.
  3. The line that triggers the error is an img tag, where I’m echo-ing a URL as the src using data from the external API response. There are other echo calls all over this template, so I doubt that’s the issue.
  4. The line in question actually works fine and does its job. I just need to get rid of the accursed warning.


Inside functions.php:

<?php    //the api endpoint declaration   add_action( 'rest_api_init', function () {     register_rest_route(         'theme/v2',   // namespace         '/homepage',  // route         array(                  // options             'methods'  => 'GET',             'callback' => 'build_home',         )     );   });    //the callback for the wordpress api   function build_home() {      // this is the external API request, using their PHP library.      // I linked the library above. The request returns an object with a bunch of data     include_once(get_template_directory()."/arena/arena.php");     $  arena = new Arena();     $  page = $  arena->set_page();      $  per = 8;      $  slug = 'concepts-bo-6ajlvpqg';      $  channel = $  arena->get_channel($  slug, array('page' => $  page, 'per' => $  per));      //I'm passing the response from the external API (in $  channel) to get_template part     //get_template_part is then the output for the wordpress API request     get_template_part('custom-home-template',null,array('channel'=>$  channel));  }   ?> 

Inside template part:

<?php   $  channel=$  args["channel"];   ?>    <div id="concepts-box" class="bodycontent reg-width">     <?php foreach ($  channel->contents as $  item) { if($  item->class=="Image"){       $  img=$  item->image["square"]["url"];       ?>     <div class="concept-wrapper">       <!-- the line below is the one that triggers the error -->       <img lozad src="<?=$  img; ?>">     </div>     <?php }} ?>   </div> 

Full warning:

<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /filepath/wp-content/themes/theme/custom-home-template.php:63) in <b>/filepath/wp-includes/rest-api/class-wp-rest-server.php</b> on line <b>1372</b><br /> 

If a reaction spell has material components, do I already need to be holding them to cast it?

Some spells that are cast with a reaction, such as Feather Fall, require material components. Suppose I am using a component pouch instead of a focus, but I’m not currently holding a small feather. If a trap door opens under the party, am I able to quickly reach for the feather in my pouch as part of the reaction to cast Feather Fall, or am I out of luck?

Obviously this is mostly a non-issue for a caster who uses a spellcasting focus instead of a component pouch, since they are pretty much always holding their focus, and I don’t think there are many (any?) reaction spells with costly or consumed material components.

How to sort wordpress posts already selected by WP_QUERY

English is not my first language, sorry 🙂

I need differend per paginate page sorting.

For exemple, I created the loop:

 $  qargs = array(                     'posts_per_page' => 15,                     'no_found_rows'  => true,                     'order' => 'DESC',                     'post_type' => 'post',                     'suppress_filters' => false,                     'orderby' => 'post_views', // here I order my posts by views                     'fields' => '',                     'date_query' => array(                         array(                             'after'     => '-7 days',                             'column' => 'post_date',                         ),                     ), posts_query = new WP_Query( $  qargs ); 

And now I can display 15 selected posts sorted by views like this:

if ( $  posts_query->have_posts() ): ?>                 while ( $  posts_query->have_posts() ):                     $  posts_query->the_post(); ....... 

But I need to select 15 most viewed posts and after that to sort them by date.

Is it possible?

Thank you!

Does Rope Trick create an extradimensional space, or does the space already exist?

In my answer to this question, I used the fact that Rope Trick states

…an Invisible entrance opens to an extradimensional space that lasts until the spell ends.

After thinking about it for a while, I started to wonder if I was wrong. This sentence can be taken two ways – either the entrance lasts until the spell ends, or the extradimensional space lasts until the spell ends.

The text

Anything inside the extradimensional space drops out when the spell ends

implies that the space ceases to exist when the spell ends. But this is different from similar destruction of bigger-on-the-inside spaces, such as the Bag of Holding:

If the bag is overloaded, pierced, or torn, it ruptures and is destroyed, and its contents are scattered in the Astral Plane.

So… Does the space get created and cease to exist when the spell ends, or is it the entrance?

Do Grave Domain clerics get the additional Spare the Dying benefits if they already know the spell?

The Grave Domain Cleric learns the spare the dying cantrip at level 1 via the class feature Circle of Mortality, which also gives them extra benefits relating to it. Part of the description of the feature says (XGtE, pg. 20):

… In addition, you learn the spare the dying cantrip, which doesn’t count against the number of cleric cantrips you know. For you, it has a range of 30 feet, and you can cast it as a bonus action.

However, what if I multiclass into cleric and I already have the spare the dying cantrip (e.g. via having taken Magic Initiate before now or, in my case, via originally being a Warlock with the Undying patron, which also grants this cantrip at level 1)?

Similar bonus cantrips usually have wording more like the Light Domain Cleric (PHB, pg. 61):

When you choose this domain at 1st level, you gain the light cantrip if you don’t already know it.

The Circle of Mortality class feature doesn’t say something like “if you don’t already know it”. Thus, if I already have the cantrip, do the extra benefits still count (i.e. increased range and option to cast it as a bonus action) since this class feature was not the one to grant me this cantrip in the first place?

How do I handle initiative when a new force joins a combat that’s already in progress?

I am DMing a small hunger-games-like adventure where there are multiple parties of NPC who also are participating. It is pretty likely that the PCs will happen upon some of the NPCs fighting some monsters.

How do I handle the PCs joining the fight, do I roll initiative all over again? Do I just roll for the new combatants and add them to the round?

Also see this similar question for Pathfinder:
How to handle some new NPCs who enter a fight in progress?