Allow level-55 Death Knights within race-based faction limits
This commit is contained in:
@@ -14,6 +14,7 @@ function player(guid,name,account,level,dead)
|
||||
function p:GetName() return self.name end
|
||||
function p:GetAccountId() return self.account end
|
||||
function p:GetLevel() return self.level end
|
||||
function p:GetClass() return self.class or 1 end
|
||||
function p:GetRace() return self.race or 2 end
|
||||
function p:IsDead() return self.dead end
|
||||
players[name]=p; return p
|
||||
@@ -114,4 +115,19 @@ assert(n==25 and players.Zaku,'Returning population must obey faction cap and pr
|
||||
assert(deaths==0,'Holding returning residents offline must not retire them')
|
||||
assert(values['125logout']==1 and values['126logout']==1)
|
||||
""")
|
||||
dk=LuaRuntime()
|
||||
dk.execute(setup)
|
||||
dk.execute("""
|
||||
players={};rows={{201,'AllianceDK',2,0,'reserve',1},{202,'HordeDK',2,0,'reserve',2}}
|
||||
local a=player(201,'AllianceDK',2,55,false);a.class=6;a.race=1
|
||||
local h=player(202,'HordeDK',2,55,false);h.class=6
|
||||
""")
|
||||
dk.execute((Path(__file__).parents[1] / 'ale/azerothai_lifecycle.lua').read_text())
|
||||
dk.execute("""
|
||||
assert(players.AllianceDK and players.HordeDK)
|
||||
local entries=0
|
||||
for _,q in pairs(writes) do if string.find(q,'entry_level=55',1,true) then entries=entries+1 end end
|
||||
assert(entries==2,'Death Knights must be audited at level 55')
|
||||
events[8](8,nil,players.HordeDK);tick();assert(not players.HordeDK and deaths==1)
|
||||
""")
|
||||
print('PASS: retirement, protection, level-1 entry, replay safety, and 25/25 faction balancing')
|
||||
|
||||
Reference in New Issue
Block a user