Author Topic: AOE Spell Problems - Need Help  (Read 361 times)

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0
AOE Spell Problems - Need Help
« on: April 28, 2012, 08:15:15 pm »


               I've ran into a Divide By 0 error in Acid Fog © script (nw_s0_acidfog_c) <<I think that's the name not sure..

I'm positive that the problem either comes from how the Caster Level is Calcualted or somewhere else...

But before I start posting long includes to look over, let me just ask some simple questions here first...

If an Encountered Enemy Creature that spawned in cast the spell (acid fog), when the second check is ran, would the caster technically be "invalid"???

I'm trying to get the "Caster Level" of the original caster, which I'm not sure how GetAreaEffectCreator() is ran...

Maybe I'm just not getting the caster level correctly???

Any help here?

I know it's just something I'm overlooking, surely...

Any explanatory help would be greatly appreciated, thanks..
               
               

               


                     Modifié par _Guile, 28 avril 2012 - 07:16 .
                     
                  


            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
AOE Spell Problems - Need Help
« Reply #1 on: April 28, 2012, 10:11:11 pm »


               wont be, but once this creature die and decay then it wont be valid anymore (but not invalid '<img'> )

which is probably your issue - you can either dispell aoe in such case (few bio aoe spells does that -> storm of vengeance) or store the caster level on AOE from spell script after AOE is created