SphereServer BugTracker - SphereServer
View Issue Details
0001852SphereServerexecutable - genericpublic13-11-10 18:0814-11-10 17:35
Coruja 
MrSugarCube 
normalmajoralways
closedno change required 
20-09-2009, 0.56b Prerelease 
 
Not Available
None
None
0001852: Mind Blast spell doesnt works
If you cast the spell with an GM account (gm=1, plevel > 1, etc) it works fine. But if you cast using an player account, the spell always switch the target to yourself, so the spell doesnt work because it doesnt take damage to the real target. Casting against monster it works fine.

[Spell 37]
DEFNAME=s_mind_blast
NAME=Mind Blast
SOUND=snd_SPELL_MIND_BLAST
RUNES=PCW
CAST_TIME=3.0
RESOURCES=i_reag_black_pearl,i_reag_mandrake_root,i_reag_nightshade,i_reag_sulfur_ash
RUNE_ITEM=i_rune_MIND_BLAST
SCROLL_ITEM=i_scroll_MIND_BLAST
FLAGS=SPELLFLAG_TARG_CHAR|SPELLFLAG_DIR_ANIM| SPELLFLAG_HARM
EFFECT_ID=i_fx_curse
EFFECT=8,9
DURATION=0.0
MANAUSE=14
SKILLREQ=MAGERY 38.0
INTERRUPT=0.0,0.0

ON=@Effect
serv.b effect <name>
No tags attached.
Issue History
13-11-10 18:08CorujaNew Issue
13-11-10 18:23CorujaNote Added: 0000754
14-11-10 17:35MrSugarCubeNote Added: 0000755
14-11-10 17:35MrSugarCubeStatusnew => closed
14-11-10 17:35MrSugarCubeAssigned To => MrSugarCube
14-11-10 17:35MrSugarCubeResolutionopen => no change required

Notes
(0000754)
Coruja   
13-11-10 18:23   
I dont know, but maybe some internal code is calling @Effect on the wrong char
(0000755)
MrSugarCube   
14-11-10 17:35   
If the target has more intelligence than the caster, then the hardcoded behaviour is for the spell to 'backfire'. In this case, the caster receives the damage instead of the target.

If you don't want this behaviour then the easiest way to stop it will be to add SPELLFLAG_SCRIPTED to the mind blast spell's flags.