Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CF: Cone spells - Oops, forgot to include the patch! :-P



I left the patch off my message.  Oops.
Here it is.


*** spell_util.c	2000/06/07 00:22:15	1.1.1.3
--- spell_util.c	2000/06/07 09:40:05
***************
*** 1049,1058 ****
--- 1086,1096 ----
  int
  cast_cone(object *op, object *caster,int dir, int strength, int spell_type,archetype *spell_arch, int magic)
  {
    object *tmp;
    int i,success=0,range_min= -1,range_max=1;
+   int spell_id=0;
  
    if(!dir)
      range_min= -3,range_max=4,strength/=2;
  
    for(i=range_min;i<=range_max;i++) {
***************
*** 1078,1088 ****
      else
        tmp->stats.sp=i;
      tmp->stats.hp=strength+SP_level_strength_adjust(op,caster,spell_type);
      tmp->stats.dam=SP_PARAMETERS[spell_type].bdam +
                    SP_level_dam_adjust(op,caster,spell_type); 
!     tmp->stats.maxhp=tmp->count;
      if ( ! QUERY_FLAG (tmp, FLAG_FLYING))
        LOG (llevDebug, "cast_cone(): arch %s doesn't have flying 1\n",
             spell_arch->name);
      if ( ! QUERY_FLAG (tmp, FLAG_WALK_ON) || ! QUERY_FLAG (tmp, FLAG_FLY_ON))
        LOG (llevDebug, "cast_cone(): arch %s doesn't have walk_on 1 and "
--- 1116,1129 ----
      else
        tmp->stats.sp=i;
      tmp->stats.hp=strength+SP_level_strength_adjust(op,caster,spell_type);
      tmp->stats.dam=SP_PARAMETERS[spell_type].bdam +
                    SP_level_dam_adjust(op,caster,spell_type); 
!     if(spell_id)
!       tmp->stats.maxhp=spell_id;
!     else
!       tmp->stats.maxhp=spell_id=tmp->count;
      if ( ! QUERY_FLAG (tmp, FLAG_FLYING))
        LOG (llevDebug, "cast_cone(): arch %s doesn't have flying 1\n",
             spell_arch->name);
      if ( ! QUERY_FLAG (tmp, FLAG_WALK_ON) || ! QUERY_FLAG (tmp, FLAG_FLY_ON))
        LOG (llevDebug, "cast_cone(): arch %s doesn't have walk_on 1 and "