Exemplo n.º 1
0
 public override void OnAttack(DamageAction action)
 {
     if (action.Victim is NPC && ((NPC)action.Victim).CheckCreatureType(Mask))
     {
         // crit this guy
         action.IsCritical = true;
         action.SetCriticalDamage();
     }
 }
Exemplo n.º 2
0
 public override void OnAttack(DamageAction action)
 {
     if (!(action.Victim is NPC) || !((NPC)action.Victim).CheckCreatureType(Mask))
     {
         return;
     }
     action.IsCritical = true;
     action.SetCriticalDamage();
 }