// 16Apr2013-10:11UTC chinajade public static bool IsSharedWorldResource(WoWObject wowObject) { bool isSharedResource = false; var wowGameObject = wowObject.ToGameObject(); var wowUnit = wowObject as WoWUnit; isSharedResource |= (wowGameObject != null) && s_sharedGameObjectTypes.Contains(wowGameObject.SubType); isSharedResource |= (wowUnit != null) && !wowUnit.TaggedByOther; isSharedResource |= (wowUnit != null) && !wowUnit.IsHostile && (wowUnit.IsAnyTrainer || wowUnit.IsAnyVendor || wowUnit.IsAuctioneer || wowUnit.IsBanker || wowUnit.IsFlightMaster || wowUnit.IsGuildBanker || wowUnit.IsInnkeeper || wowUnit.IsQuestGiver || wowUnit.IsStableMaster || wowUnit.CanGossip ); return(isSharedResource); }
// 16Apr2013-10:11UTC chinajade public bool IsSharedWorldResource(WoWObject wowObject) { bool isSharedResource = false; var wowGameObject = wowObject.ToGameObject(); var wowUnit = wowObject.ToUnit(); isSharedResource |= (wowGameObject != null) && _sharedGameObjectTypes.Contains(wowGameObject.SubType); isSharedResource |= (wowUnit != null) && wowUnit.TappedByAllThreatLists; isSharedResource |= (wowUnit != null) && !wowUnit.IsHostile && (wowUnit.IsAnyTrainer || wowUnit.IsAnyVendor || wowUnit.IsAuctioneer || wowUnit.IsBanker || wowUnit.IsFlightMaster || wowUnit.IsGuard || wowUnit.IsGuildBanker || wowUnit.IsInnkeeper || wowUnit.IsQuestGiver || wowUnit.IsStableMaster ); return(isSharedResource); }
// 16Apr2013-10:11UTC chinajade public bool IsSharedWorldResource(WoWObject wowObject) { bool isSharedResource = false; var wowGameObject = wowObject.ToGameObject(); var wowUnit = wowObject.ToUnit(); isSharedResource |= (wowGameObject != null) && _sharedGameObjectTypes.Contains(wowGameObject.SubType); isSharedResource |= (wowUnit != null) && wowUnit.TappedByAllThreatLists; isSharedResource |= (wowUnit != null) && !wowUnit.IsHostile && (wowUnit.IsAnyTrainer || wowUnit.IsAnyVendor || wowUnit.IsAuctioneer || wowUnit.IsBanker || wowUnit.IsFlightMaster || wowUnit.IsGuard || wowUnit.IsGuildBanker || wowUnit.IsInnkeeper || wowUnit.IsQuestGiver || wowUnit.IsStableMaster ); return isSharedResource; }
public override void UpdateReference(WoWObject obj) { base.UpdateReference(obj); RefWoWGameObject = obj.ToGameObject(); }