SphereCommunity
src.spelleffect with area spells not working - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: src.spelleffect with area spells not working (/Thread-src-spelleffect-with-area-spells-not-working)



src.spelleffect with area spells not working - Rizz - 08-10-2014 07:36 PM

PHP Code:
ON=@spelleffect
IF (!<src.findid.i_rune_MAGIC_REFLECTION.uid>)
SRC.SPELLEFFECT=<ARGN1>,<src.magery//<-- problem is here!
return 1
ENDIF 

SRC.SPELLEFFECT will not work with area spells such as chain lighting or meteorswarm.
What should i do? Use a src.effect and add damages?


RE: src.spelleffect with area spells not working - darksun84 - 08-10-2014 10:29 PM

It fires for me

14:29:(sphere_skills.scp,1351)In @SpellEffect baobab hit by Meteor Swarm
14:29:1:'pietro' commands 'spelleffect 55,1000'=1


But I think your script will also cause a crash sisi


RE: src.spelleffect with area spells not working - Rizz - 08-10-2014 10:39 PM

If you use the command in game it also works for me.
That is a small part of a script, not the entire; it never caused crash Tongue


RE: src.spelleffect with area spells not working - darksun84 - 08-11-2014 12:34 AM

It works for me even by calling spelleffect by script Confused