How do targeting and line of sight for spells work in regards to allies?

I’ve been wondering on how spells interact with allies:

  • Does your line of sight gets blocked by allies?

  • Can allies stand in the way of your spell?

I cannot really find evidence on how the rules work, even though there are some examples and a Sage advice.


Example: Poison Spray

Poison Spray states: (emphasis mine)

You extend your hand toward a creature you can see within range and project a puff of noxious gas from your palm. The creature must succeed on a Constitution saving throw or take 1d12 poison damage.

If an ally is in front of me, and behind him is an enemy, can I:

  1. Target the creature behind my ally? Ally blocks the line of sight?

  2. Hit the creature behind my ally? Ally blocks the clear path to the target?


Example: Sacred Flame (ignores cover)

Sacred flame states:

Flame-like radiance descends on a creature that you can see within range. The target must succeed on a Dexterity saving throw or take 1d8 radiant damage. The target gains no benefit from cover for this saving throw.

If an ally is in front of me, and behind him is an enemy, can I:

  1. Target the creature behind my ally? Ally blocks line of sight?

  2. Hit the creature behind my ally? Ally blocks the clear path to the target, but the creature does not benefit from cover: so ally doesn’t block the spell?


Conclusion (questions)

Am I correct to assume that:

  1. An ally provides half cover for an enemy behind him?

  2. An ally blocks a clear path to the enemy?

Limitations of targeting of ‘Friends’ cantrip

The “Friends” cantrip (PHB pg 244) has a range of “self”, but it also affects “one creature of your choice”. Can this creature be one you can’t see, such as one behind a door?

This question: What good is Friends? includes comments about using the cantrip against a guard on the other side of a gate, but I get the impression that the caster would be able to see the target in that scenario.

I’m looking for answers based on the RAW; if there’s another spell which has a range of “self” but still only effects a specified target other than the caster, that would be a big help for comparison.

Number partitioning targeting ratio of subset sums and equal size

I’ve seen a number of questions and answers related to the partitioning problem of dividing a set into 2 subsets of equal size and sum that use greedy or dynamic programming solutions to get approximate answers. However, I am looking to split a set into 2 subsets of minimum difference in size but with a target ratio of sums.

I have tried variations of greedy algorithms that will work to minimize the largest difference of the two metrics at any point in the calculation, but this just results in a result that splits the difference between the two. I’m happy with an approximate solution since it needs to run in a reasonable amount of time.

Which is the best URL structure for Targeting Multiple city keywords (keyword also included in domain name)?

Suppose I have keyword in Domain Name (exampleseo.com here SEO is the keyword) and I want to rank my website on following keywords “SEO Company in Delhi / SEO Agency in Delhi / SEO Service in Delhi / SEO Consultancy in Delhi” .

Here Delhi change with City Name like Mumbai, Kolkata, Jaipur, Noida etc. I have Multiple city options in my website.

Which is the best URL Structure?

  1. exampleseo.com/location/delhi

  2. exampleseo.com/delhi

  3. exampleseo.com/seo-delhi

  4. exampleseo.com/delhi-seo

  5. exampleseo.com/seo-company-delhi

  6. exampleseo.com/seo-agency-delhi
  7. exampleseo.com/seo-service-delhi
  8. exampleseo.com/seo-consultancy-delhi

Why is targeting an adjacent attacker with a 5 foot cube area attack considered a ranged attack?

An opponent has moved adjacent up into a character’s face and swung at them. On their turn, in retaliation, the character would like to attack back with their favoured cube area attack, made at the size of a 5 foot sized cube to be ergonomic. Oddly the rules as written (see below) seems to qualify this attack as a ranged attack even though the target is adjacent and every other area attack also containing the attacker would not. Is this an oversight, an intentional design decision, or is there anything I’m overlooking that makes this ruling invalid?

The rules leading me to this conclusion appears here:

Ranged Attacks in Melee

Any time you make a ranged attack and there is an enemy within melee reach of you, you have disadvantage 1 on your attack roll. Area attacks are considered ranged attacks if the area does not include at least one space adjacent to the attacker.

The 5 foot cube placed on the attacker’s square does not include at least one space adjacent to the attacker but it does include attacker’s square itself which intuitively feels like it shouldn’t be a ranged attack as well as other area attacks. RAW however, this means it’s a ranged attack and imposes disadvantage 1. To me a more intuitive ruling and writing of it would be:

Ranged Attacks in Melee

Any time you make a ranged attack and there is an enemy within melee reach of you, you have disadvantage 1 on your attack roll. Area attacks are considered ranged attacks if the area does not include the attacker or at least one space adjacent to the attacker. (changes italicized)

Are there existing rules or other evidence the designer’s intention was for this scenario to be a ranged attack? If so, why only 5 foot cubes and not every other area effect (they have to include a square adjacent to the opponent as well)? Is there perhaps another mechanical reason I can’t find that this attack should be considered ranged? Is the attack simply supposed to impose disadvantage 1 and being considered ranged is simply a byproduct?

In the case that it shouldn’t be considered ranged (or only considered ranged for the purpose of disadvantage 1), I would like to revise this confusing wording. I have found the Open Legends repository and my intention is to submit a pull request if I understand the rules correctly and this ruling is against the RAI. However, I’m asking my question here first to gain assurance, as I know that I am very new to the system and may be overlooking something.

Can Selective Spell be used to exclude a swarm from targeting?

I’m researching the attack spells available to druids. Creeping Doom looks very useful for some situations, but it seems like it doesn’t combine well with other spells like Flame Strike and Fire Storm since you’ll quickly destroy your own swarms. Can a druid use Selective Spell to mitigate this by excluding the swarms?

What are the targeting range limitations of Glyph of Warding?

Glyph of warding states, in part:

When the glyph is triggered, the stored spell is cast. If the spell has a target, it targets the creature that triggered the glyph.If the spell affects an area, the area is centered on that creature.

Other questions have addressed the fact that the specific wording of the glyph allows a spell that has a range of self, for example, to instead affect whoever triggered the effect.

My question is whether the wording also supersedes other potential issues- specifically, with how far away the target can be.

Can Glyph of warding alter the range of the stored spell? If so, by how much?

How does targeting work when casting Call Lightning through Glyph Of Warding

Call Lightning targets area, then caster choose point in that area and anybody in 5ft radius of that point is damaged, then on each turn caster can use action and choose another point for another lightning.

Casting it through glyph of warding has the benefit of not using concentration and getting whole 10 minutes (100 turns) of duration. But would it work?

Glyph of Warding works with spells that target area by autotargetting the area centered on the triggering creature – that’s fine, the cloud appears above an enemy. But then what happens – would glyph also choose the point in that area to target that enemy? Would the glyph do it every turn? What if the enemy that triggered the spell died on the second turn and there’s still 98 turns more of the spell duration – would the glyph target another enemy?

Or maybe since the caster is still “me” – I get to choose the points where the lightnings fall each round?

Twitter ads targeting for Flexible Audiences and Similar audiences

For some reason, we can't select tailored audiences when we browse them on the page to create flexible audiences, why so? How can we find them?

View attachment 244202

On the other hand, at the moment to create a campaign from a Tailored Audience just below it appears an option that says "Target similar people to those in your chosen audiences". What is the difference between ticking this option and selecting "Expand your audience features" that appears at the end of the Campaign…

Twitter ads targeting for Flexible Audiences and Similar audiences

Audience Targeting

A short Breakup what I wanna do in Spfx.

My goal is it to provide a custom-designed Sharepoint site based on the Users group.

The first step would be to hide all Webparts on the Side and then to display only the needed ones.

My first attempt was to create an Extention and get a reference to all Webparts.

My second attempt was to use JQuery in combination with CSS. I know this isn’t something u wanna do, and this solution won’t hold forever and may cause some other problems.

However, I have the following problem. My CSS Injection is applied late. When I hide a Webpart it gets first rendered for a second and then disappears.

Is there a Way to inject CSS before the page loads?

Any help would be appreciated, anyway have a nice Weekend!