Inheritance: CritterChainEventArgs
 // called by engine
 bool RaiseUseSkillOnMe(Critter who_use, int skill)
 {
     if (UseSkillOnMe != null)
     {
         var e = new CritterUseSkillOnMeEventArgs(this, who_use, skill);
         UseSkillOnMe(this, e);
         return(e.Prevent);
     }
     return(false);
 }
Exemple #2
0
 // called by engine
 bool RaiseUseSkillOnMe(Critter who_use, int skill)
 {
     if (UseSkillOnMe != null)
     {
         var e = new CritterUseSkillOnMeEventArgs(this, who_use, skill);
         UseSkillOnMe(this, e);
         return e.Prevent;
     }
     return false;
 }