All pastes #49328 Raw Edit

Someone

public text v1 · immutable
#49328 ·published 2006-04-14 07:26 UTC
rendered paste body
          // Launch the magic skill in order to calculate its effects
          callSkill(skill, targets);

          // Notify the AI of the L2Character with EVT_FINISH_CASTING
          getAI().notifyEvent(CtrlEvent.EVT_FINISH_CASTING);

          switch(skill.getSkillType())
          {
                case PDAM:
                case DRAIN_SOUL:
                case FATALBLOW:
                case STUN:
                case SPOIL:
                  if((getTarget() != null) && (getTarget() instanceof L2Character))
                  {
                        enableAllSkills();
                        getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, getTarget());
                  }
                default:
          }
        }
  }


  /**
  * Reduce the item number of the L2Character.<BR><BR>
  *