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