devilutionX icon indicating copy to clipboard operation
devilutionX copied to clipboard

PvP mod/master bug - Murkey Pools for the arena's cost the player 30 mana.

Open FireIceTalon opened this issue 2 years ago • 12 comments

Operating System

Windows x64

DevilutionX version

Custom build (please specify commit ID)

Describe

Here is a link to the build in question - https://github.com/diasurgical/devilutionX/suites/7789559185/artifacts/328190699

After the player casts telekineses to click on a Murky Pool shrine in either Arena 2 or 3, the pool removes 30 mana.

To Reproduce

type /arena 2 or /arena 3 to proceed to the arenas, cast telekineses on any Murky Pool shrine.

Expected Behavior

For normal mana cost (8) to be withdrawn from a normal telekinesis cast, but no mana withdrawn from actually touching the Murky Pool shrine

Additional context

https://user-images.githubusercontent.com/98377923/184463020-b1085f09-1ff4-454a-9f5e-6ea9d84d708e.mov

FireIceTalon avatar Aug 13 '22 01:08 FireIceTalon

That arena and telekinesis part was unnecessary, I was about to close this issue because arena still not merged = unofficial = not sure if we care

But I'd risk saying all objects that cast any spells atm will consume player's mana

qndel avatar Aug 13 '22 07:08 qndel

Broken by https://github.com/diasurgical/devilutionX/commit/aa6ea3907e4df3d14595605e8b41976ad40e01f0 ...

qndel avatar Aug 13 '22 07:08 qndel

That arena and telekinesis part was unnecessary, I was about to close this issue because arena still not merged = unofficial = not sure if we care

But I'd risk saying all objects that cast any spells atm will consume player's mana

It's fine, because that's what they tested. It's better than claiming it's in master when maybe it wasn't.

StephenCWills avatar Aug 13 '22 14:08 StephenCWills

That arena and telekinesis part was unnecessary, I was about to close this issue because arena still not merged = unofficial = not sure if we care But I'd risk saying all objects that cast any spells atm will consume player's mana

It's fine, because that's what they tested. It's better than claiming it's in master when maybe it wasn't.

but then it should only be reported if it's in master :D

qndel avatar Aug 13 '22 18:08 qndel

By the way, since you're talking about murky pool and mana consumption. In single player I had recently the impression activating a murky pool causes consuming mana. I don't remember it was the case in vanilla. However, I would have to double-check this suspicion.

Chance4us avatar Aug 13 '22 20:08 Chance4us

It definitely does not happen in vanilla.

FireIceTalon avatar Aug 13 '22 20:08 FireIceTalon

I think this should be fixed with #5243.

#4999 switched the shrine missiles to TARGET_MONSTERS for some reason, which I think was incorrect, as this causes the Add[missile] functions to use mana.

DakkJaniels avatar Aug 13 '22 21:08 DakkJaniels

it was switched so that sourceType() will return MissileSource::Player, else sourcePlayer() will return nullptr.

AJenbo avatar Aug 13 '22 21:08 AJenbo

it was switched so that sourceType() will return MissileSource::Player, else sourcePlayer() will return nullptr.

so change to TARGET_BOTH so it uses mana?

DakkJaniels avatar Aug 13 '22 21:08 DakkJaniels

Yeah I think that would work.

AJenbo avatar Aug 13 '22 21:08 AJenbo

Ok switched it, It did seem to work fine for the few shrines I was able to quickly find and test with (found Holy and Magical) for TARGET_PLAYERS . It also worked fine with TARGET_BOTH for the shrine I was able to find in a quick test run.

DakkJaniels avatar Aug 13 '22 22:08 DakkJaniels

I noticed that the code hasn't been updated for the shrines yet, so TARGET_PLAYERS won't have the negative effect yet, but could soon. So good that we use TARGET_BOTH already and won't have to fix it again :)

AJenbo avatar Aug 13 '22 23:08 AJenbo