How is the save DC for a Half-Dragon’s breath weapon calculated?

The Half-Dragon Template in D&D 5e (MM, p. 180) states that, “The half-dragon has the breath weapon of its dragon half.” However, the sample statblock given for a half-red dragon veteran has a different save DC (15) than the red dragon wyrmling (13) it is based off of. I have attempted to find reasoning behind this, though I haven’t been able to find it through set mechanical standards.

Why is the save DC for the half-red dragon veteran example’s breath weapon listed as 15 instead of 13?

Count tags for current post and save into custom meta field (and update it on post edit)

This question is sort of a follow up from another question on here Order posts by tags count?

The first comment recommends counting the number of tags and saving it into a custom meta field. Going from that, I’ve put this in my single.php

$  terms = get_the_terms( $  post->ID, 'taxonomy' ); $  terms_count = count ( $  terms ); if ( ! add_post_meta($  post->ID, 'custom-field-name', $  terms_count, true ) ) {          update_post_meta( $  post->ID, 'custom-field-name', $  terms_count ); } 

This first question is – is this code alright? It seems to work fine, but I basically just copied it over from the WordPress codex.

The second question – is there a way to trigger this function when I update the post, instead of it being updated every time the page is reloaded? Seems redundant this way.

“Could not save the list changes to the server” error in SharePoint designer 2013

I am trying to create custom new/edit forms in SharePoint online site which was working last week.

But now it shows this error:

enter image description here

Tried these solutions:

  1. Deleted website cache related to designer.
  2. Uninstalled designer and installed SharePoint Online components.
  3. There are no special characters in site name or list name.
  4. Checked to disable “e374875e-06b6-11e0-b0fa-57f5dfd72085” feature. But it doesn’t exists.
  5. Also checked permissions. I have full control permissions on the site.

Kindly help me in resolving this.

Jpa Repository save inside a for loop

I have this requirement:

  • Csv Upload (using opencsv)
  • Should display if the record is inserted (if it doesn’t exist in the db) or updated (if it exists). Eg.: 5 records inserted 2 records updated.

Usually I use repo.saveAll(entityObjList) to save all the entries.

Since I have to keep track of number of updates and inserts, I came up with using the repo.save(entityObj) method inside the for loop which is not greatly appreciated.

Is there any other way to approach this problem ? Any suggestion is welcome.

When I add a new custom Customer attribute I get Fatal Error on click save or submit button

Hi I manage to add my custom customer attribute with InstallData on my custom module it appears evrything is working fine, but when i try save or edit customer in front end or admin panel, when i click on the Save Button when editing a customer or creating a customer i got this error. I’m on Magento V 2.3.2

Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Eav\Model\Attribute\Data\Text::validateLength() must be of the type string, null given vendor/magento/module-eav/Model/Attribute/Data/Text.php on line 141.

Does a spellcaster know when their spell has no effect due to a save or immunity?

Suppose a cleric casts Zone of Truth on a captured enemy. Unbeknownst to them, the enemy is a rakshasa. Zone of Truth says (PHB, p. 289):

You know whether each creature succeeds or fails on its saving throw.

But (MM, p. 257):

The rakshasa is immune to spells of 6th level or lower unless it wishes to be affected.

Assuming the rakshasa doesn’t wish to be affected by the Zone of Truth spell, does the caster know this?

More generally, does a caster know when targets are unaffected by a spell they have cast, either because they have made saving throws, or because they are outright immune to the spell or its effects (e.g., casting Ray of Sickness on a shadow demon, which is immune to poison damage and the poisoned condition)?

Greater Command vs. Hold Person–Will save over a will save?

My party were subject to Greater Command at last night’s table, the Fighter and Oracle succumbed. The Cleric, hoping to stop some of his teammates from running away, attempted a Hold Person on the fighter. The Fighter, unfortunately, failed his save and was not held.

I have a few questions within this scenario.

  1. a) Would the fighter have to make the saving throw or could he fail willingly? My feeling is that he would have to make the saving throw because he hasn’t much knowledge of spells or spellcasters and wouldn’t know where the spell was coming from let alone it’s effects. b) If under the compulsion though, is the Fighter’s mind even his own?

  2. Would the fighter even get a save or would the Hold Person be more like a counter spell, and if so how would that work?

Magento 2.3.0 – Migrated from 1.9.3.4 – Some attributes not updating on product save

Having some weird trouble with a migrated M2 website. I’ve seen some resources on here, but they all don’t seem to be showing the same symptoms.

Migrated a site using the Magento tool – all went well apart from an odd issue with the select attributes not functioning as expected.

If I update a migrated (Say Attribute Value “A” to Value “B”), it will revert to “A” on save.

If I create a new product and do the same thing it works fine.

I’ve seen that it may be an issue in the eav_attribute table.

For reference, this is one of the troublesome attributes (which were also migrated):

*************************** 1. row ***************************    attribute_id: 586  entity_type_id: 4  attribute_code: room attribute_model: NULL   backend_model: Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend    backend_type: varchar   backend_table: NULL  frontend_model: NULL  frontend_input: multiselect  frontend_label: Room  frontend_class: NULL    source_model: Magento\Eav\Model\Entity\Attribute\Source\Table     is_required: 0 is_user_defined: 1   default_value:       is_unique: 0            note: NULL 

Compare that to a test attribute I created after migration:

*************************** 1. row ***************************    attribute_id: 1212  entity_type_id: 4  attribute_code: test_select_attribute attribute_model: NULL   backend_model: NULL    backend_type: int   backend_table: NULL  frontend_model: NULL  frontend_input: select  frontend_label: Test Select Attribute  frontend_class: NULL    source_model: Magento\Eav\Model\Entity\Attribute\Source\Table     is_required: 0 is_user_defined: 1   default_value:       is_unique: 0            note: NULL 

The only big difference being the backend_model. – I set this to NULL, but that didn’t make a difference.

Other issues I’ve noticed:

In debug.log, there’s a bunch of these errors:

main.WARNING: Attempt to load value of nonexistent EAV attribute '575'                          for entity type 'Magento\Catalog\Api\Data\CategoryInterface'. [] [] 

Also, I can’t for the life of me get these attributes to load in layered navigation. I would assume it’s related to the above issues.

Anyone out there who’s able to help at all?

Cheers