forked from tropicdome/MyPetBattle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteam_configuration.lua
executable file
·39 lines (29 loc) · 967 Bytes
/
team_configuration.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
------------------------
-- TEAM CONFIGURATION --
------------------------
-- LOTS OF TO DO'S !!!
-- { "Pet Name", approximate level e.g. 20 } -- if level is nil maximum level will be chosen e.g. 25
local team_pet1 = { "Onyxian Whelping" }
local team_pet2 = { "Onyxian Whelping", 20 }
local team_pet3 = { "Onyxian Whelping", 20 }
-- Pet switching
local petOwner = LE_BATTLE_PET_ALLY
local petIndex = C_PetBattles.GetActivePet(petOwner)
local i = nil
if MyPetBattle.hp(petIndex) < 0.4 then
for i=1,3 do
if MyPetBattle.hp(i) > 0.5 then
C_PetBattles.ChangePet(i)
print("|cFF8B0000.. Changing pet due to low health! ..")
end
end
end
-- PvP - switch between all pets
-- PvE leveling - switch only if pet is about to die
-- Switch to stronger pet based on strengths and weaknesses
-----------------------------
-- ABILITIES AND MECHANICS --
-----------------------------
-- http://www.wowhead.com/petabilities
-- Offensive spells
-- Defensive spells