示例#1
0
 public void LootCorpse(WoWUnit corpse)
 {
     if (corpse.DistanceToPlayer < 2)
     {
         corpse.Interact(true);
     }
     else
     {
         PathModule.Traverse(corpse.Position);
     }
 }
示例#2
0
 public void InteractWithVendor(WoWUnit vendor)
 {
     if (!MerchantFrame.IsOpen)
     {
         if (vendor.DistanceToPlayer < 2)
         {
             vendor.Interact(false);
         }
         else
         {
             PathModule.Traverse(vendor.Position);
         }
     }
 }