View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001852SphereServerexecutable - genericpublic13-11-10 18:0814-11-10 17:35
ReporterCoruja 
Assigned ToMrSugarCube 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version20-09-2009, 0.56b Prerelease 
Target VersionFixed in Version 
Summary0001852: Mind Blast spell doesnt works
DescriptionIf 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>
TagsNo tags attached.
Nightly VersionNot Available
Experimental FlagsNone
Option FlagsNone
Internal Build Number
Attached Files

- Relationships

-  Notes
(0000754)
Coruja (developer)
13-11-10 18:23

I dont know, but maybe some internal code is calling @Effect on the wrong char
(0000755)
MrSugarCube (administrator)
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.

- Issue History
Date Modified Username Field Change
13-11-10 18:08 Coruja New Issue
13-11-10 18:23 Coruja Note Added: 0000754
14-11-10 17:35 MrSugarCube Note Added: 0000755
14-11-10 17:35 MrSugarCube Status new => closed
14-11-10 17:35 MrSugarCube Assigned To => MrSugarCube
14-11-10 17:35 MrSugarCube Resolution open => no change required


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker