What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Trigger interrupt casting

DevMissed

New Member
Joined
Aug 25, 2011
Messages
2
Reaction score
0
Hello dev board !

Is there a way to know if the spell I'm casting has been hurt my target or if it's interrupt by someone (an event or else) ?

I use the following code to cast a spell on my actual target
Code:
SpellManager.Cast(IdSpell);

Thanks in advance !
DevMissed
 
Last edited:
you can have it check the combat log, but theres no api to do that for you.
Code:
        private static void CombatLogEventHander(object sender, LuaEventArgs args)
        {
            foreach (object arg in args.Args)
            {
                if (arg is String)
                {
                    var s = (string)arg;
                    if (s.ToUpper() == "EVADE" || s.ToUpper() == "ENTKOMMEN")
                    {
                    }
                 }
            }
 
Back
Top