Does the Doppelganger apply bonus damage from it’s Surpise Attack feature twice?

The Doppelganger gets extra damage if it surprises an enemy and hits it.

Surprise Attack. If the doppelganger surprises a creature and hits it with an attack during the first round of combat, the target takes an extra 10 (3d6) damage from the attack.

Since the Doppelganger gets 2 attack per round, if it hits with both attacks during the first round, will it add the bonus damage on each attack?

Why was 24-bit color support introduced twice in GPUs?

I was doing research, trying to answer the question "Which was the first GPU to support 24-bit color". I know all color since 1992 is 24-bit, even in games like Doom. I mean 16 million simultaneous colors on the screen, not just 256 unique colors from a 24-bit palette.

I started digging, and naturally I came across the ATI Mach 32. Later I find out that RIVA TNT also "added" support for truecolor. So I’m left wondering, is 24-bit color support some ancient technology that was forgotten after 1992 and rediscovered in the year 1998? Or are they talking about something different?

I have two guesses, but I’d love to know the real explanation:

  1. Truecolor support in RIVA TNT meant it’s hardware accelerated, as in the sprites are stored in the VRAM, as opposed to the Mach 32, where the VRAM is just a frame buffer so acceleration would be considered software.
  2. Nvidia meant 32-bit color texture, not even talking about frame buffer pixel depth.

Anyone know what both Nvidia and ATI really meant?

Why does Dreamweaver save the same .php file twice?

  • I am creating a website on localhost (WAMP) as of now.
  • I have set up the testing server
  • the new php files that I create are saved in a sub-foldor of www folder specific for my website. [ C:\wamp64\www\mysite ]
  • Though, a duplicate of the file is saved outside the folder, in the www folder as well. [ C:\wamp64\www]
  • When I edit either file, both are edited.

I am confused as to why does this happen and how does this affect my website development process(Amateur developer).

Does a regular expression exist for any number that contains no more than two 5s and no 6 twice in a row?

For example, a valid number would be 6165156 and an invalid number would be 1566515.

I have tried many times to construct a finite state machine for this with no success, which leads me to believe the language is not regular. However, I am unsure how to formally prove this if that is indeed the case. I tried applying the pumping lemma but I am not completely sure how to apply it to this particular language.

Any help is appreciated!

Can Cloudkill deal damage twice in a turn?

The spell Cloudkill has the following effect:

When a creature enters the spell’s area for the first time on a turn or starts its turn there, that creature must make a Constitution saving throw. The creature takes 5d8 poison damage on a failed save, or half as much damage on a successful one.

The bolded section is language shared by several spells (Moonbeam, Sleet Storm).

If a creature starts its turn in the Cloudkill (and therefore makes a save/takes the damage), runs out of it, then runs back in, will it need to make another save?

i.e. does “enters the spell’s area for the first time on a turn” mean:

  1. The first instance of transitioning from outside the spell’s area to inside it on a turn (yes, the creature must make the save)
  2. Any time the creature enters the spell’s area and has not previously been in it this turn (no, the creature doesn’t make the save)

Can I Quicken a cantrip to cast it twice in a turn and also use Twinned Spell on both castings?

I’m currently building a monk sorcerer who uses melee spell attacks, notably the cantrip Shocking Grasp. Can I use the Quickened Spell Metamagic option to cast the spell as a bonus action and then use the Twinned Spell Metamagic option to attack an additional enemy, then use Shocking Grasp again as my action and use Twinned Spell again to attack both enemies a second time?

Does the extra damage from Booming Blade stack if the spell is cast twice on the same target?

The booming blade spell (Sword Coast Adventurer’s Guide, p. 142) says:

As part of the action used to cast this spell, you must make a melee attack with a weapon against one creature within the spell’s range, otherwise the spell fails. On a hit, the target suffers the attack’s normal effects, and it becomes sheathed in booming energy until the start of your next turn. If the target willingly moves before then, it immediately takes 1d8 thunder damage, and the spell ends.

Does the secondary effect of booming blade (which does extra damage if the target moves before my next turn) stack if the spell is cast a second time as a bonus action through the sorcerer’s Quickened Spell metamagic?

Can a sorcerer cast the same spell twice if enough spell slots are available?

In D&D 5e, let’s say that I have two level-1 spell slots available and want to cast Burning Hands. On one turn, I use one of the available spell slots to cast Burning Hands. On my next turn, I have one additional spell slot available. Am I allowed to use it for Burning Hands, or do I need to select a different spell to use the remaining spell slot?

I am asking this because I was told by someone more experienced that it doesn’t work that way, but I thought the rules said otherwise.