Skip to content

Instantly share code, notes, and snippets.

@freebaser
Created December 1, 2010 10:51
Show Gist options
  • Save freebaser/723325 to your computer and use it in GitHub Desktop.
Save freebaser/723325 to your computer and use it in GitHub Desktop.
@@ -41,16 +41,18 @@
end
local function Unbeneficial(self, unit)
+ if UnitHasVehicleUI('player') then
+ return true
+ end
+
if(unit == 'player') then
if(UnitLevel(unit) == MAX_PLAYER_LEVEL) then
return true
end
elseif(unit == 'pet') then
local _, hunterPet = HasPetUI()
+ if(not hunterPet or (UnitLevel(unit) == UnitLevel('player'))) then
- if(not self.disallowVehicleSwap and UnitHasVehicleUI('player')) then
return true
- elseif(not hunterPet or (UnitLevel(unit) == UnitLevel('player'))) then
- return true
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment