SkillCaster triggerCast should notify finish cast event.
This commit is contained in:
@@ -868,6 +868,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -868,6 +868,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -868,6 +868,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -868,6 +868,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -868,6 +868,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -868,6 +868,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -868,6 +868,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -868,6 +868,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -869,6 +869,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -869,6 +869,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -869,6 +869,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -869,6 +869,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -868,6 +868,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -868,6 +868,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -868,6 +868,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -868,6 +868,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -868,6 +868,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -873,6 +873,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -868,6 +868,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -874,6 +874,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -874,6 +874,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -874,6 +874,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -874,6 +874,17 @@ public class SkillCaster implements Runnable
|
|||||||
|
|
||||||
// Launch the magic skill and calculate its effects
|
// Launch the magic skill and calculate its effects
|
||||||
skill.activateSkill(creature, item, targets);
|
skill.activateSkill(creature, item, targets);
|
||||||
|
|
||||||
|
// Notify skill is casted.
|
||||||
|
if (creature.onCreatureSkillFinishCast == null)
|
||||||
|
{
|
||||||
|
creature.onCreatureSkillFinishCast = new OnCreatureSkillFinishCast();
|
||||||
|
}
|
||||||
|
creature.onCreatureSkillFinishCast.setCaster(creature);
|
||||||
|
creature.onCreatureSkillFinishCast.setTarget(target);
|
||||||
|
creature.onCreatureSkillFinishCast.setSkill(skill);
|
||||||
|
creature.onCreatureSkillFinishCast.setSimultaneously(skill.isWithoutAction());
|
||||||
|
EventDispatcher.getInstance().notifyEvent(creature.onCreatureSkillFinishCast, creature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
Reference in New Issue
Block a user