Stoneskin bug?

Timezone: Central Time (US & Canada) (GMT-06:00)
� Previous :: Next �
AuthorMessage
Usagi
Stoneskin bug?
Friday, January 23rd, 2009 at 6:40 pmEdits: 1   Last Edit: Fri, 23 Jan 2009 6:42 pm
So recently, I've found stoneskin pretty handy for killing stuff ... but then I noticed this:

Quote:

(192 H 81 M): Your skin hardens.
Stoneskin spell cast.
You feel impervious.
(192 H 1 M): ### Bane just flashed, "strange".

++ after some self-abuse ++

(152 H 120 M): Please wait 3 more seconds.
(152 H 120 M): Vigor spell cast. (+3)
(155 H 118 M): You sent "yeah" to Bane.
(155 H 118 M): You sent "i am vigging myself for 3 again" to Bane.
(155 H 118 M): You sent "after casting stoneskin" to Bane.
(155 H 118 M): Vigor spell cast. (+5)
(160 H 116 M): ### Bane just flashed, "haha".
(160 H 116 M): Vigor spell cast. (+6)
(166 H 125 M): ### Bane just flashed, "post a log of it".
(166 H 125 M): You sent "ok." to Bane.
(167 H 125 M): Vigor spell cast. (+3)
(170 H 123 M): Vigor spell cast. (+5)
### Bane just flashed, "probly a bug".
(175 H 121 M): Vigor spell cast. (+3)
(178 H 119 M): Mend-wounds spell cast. (+4)
(182 H 115 M): Vigor spell cast. (+5)
(187 H 113 M): Vigor spell cast. (+4)
(191 H 111 M): Mend-wounds spell cast. (+4)
(195 H 107 M): Vigor spell cast. (+2)
(197 H 105 M): ....·····.....·····..../
....·····.....·····....
· . . · · . . | Help on: stoneskin spell | . . · · . .
·
····.....·····.....····
/····.....·····.....····
MP cost: half

This spell turns the caster's skin to solid stone, making them virtually
impervious to physcial attacks for the duration of the spell. You must be
atleast level 13 to cast this spell.

Syntax:
cast stoneskin


My vigs range from 2-6 and it looks like mend is about the same. It looks like stoneskin is cutting my healing in half ... is this intended or a bug?

delta
Watcher
Re: Stoneskin bug?
Tuesday, January 27th, 2009 at 4:01 amEdits: 2   Last Edit: Tue, 27 Jan 2009 4:02 am
This is not a bug - it's a "feature." XD

From healmagic.cpp, line 324:

Code:
	if(target && healer != target) {
		if(target->isPlayer()) {
			if(target->isEffected("stoneskin"))
				heal /= 2;

			if(target->flagIsSet(P_POISONED_BY_PLAYER))
				heal = mrand(1,4);

			if(target->flagIsSet(P_OUTLAW) && target->getRoom()->flagIsSet(R_OUTLAW_SAFE))
				heal = mrand(1,3);

		}
	} else {
		if(healer->isEffected("stoneskin"))
			heal /= 2;
		if(healer->flagIsSet(P_OUTLAW) && healer->getRoom()->flagIsSet(R_OUTLAW_SAFE))
			heal = mrand (1,3);
	}


The second text group applies to you, but all stoneskined targets are half-healed.

Usagi
Re: Stoneskin bug?
Tuesday, January 27th, 2009 at 7:24 pm
Oh yeah, I thought I saw it somewhere before. Thanks for pointing it out. GD Bane.

I remember reading something about it somewhere ... but I second-guessed myself when I didn't see it in the help file and missed over it in the code.

Realms ForumIn-Game DiscussionStoneskin bug?