[CF-Devel] Summoning bug: can't level up

crossfire-devel at archives.real-time.com crossfire-devel at archives.real-time.com
Fri Jan 16 01:54:30 CST 2004


Nicolas Weeger wrote:
>
     
      Hello.
     
     >
     
     
     >
     
      Yesterday i saw a player who couldn't cast 'summon lesser golem'.
     
     >
     
      Checking some, the reason is pretty obvious:
     
     >
     
      This player just learned summoning, thus his skill is 1.
     
     >
     
      Lesser golem is level 1.
     
     >
     
      The player worships Mostrai, so summoning repelled.
     
     >
     
     
     >
     
      So player lever becomes (see spell_util.c:caster_level) 1 - 2 (repelled) 
     
     >
     
      -> -1
     
     >
     
      Min level to cast (min_casting_level) is 1 - 2 -> -1 checked against <1 
     
     >
     
      -> 1
     
     >
     
     
     >
     
      So he simply can't cast the spell, and can't level up alone, need to party.
     
     >
     
     
     >
     
      I think the best way to fix is to check caster_level and return at least 1.
     
     
  Just for the record, that is now done.

  This is done to fixes some other bugs, most notably some divide by zero bugs 
for functions that just divide by caster_level()



_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list