From 8323f6af7b648174328d17e6d0c72dcd70492622 Mon Sep 17 00:00:00 2001 From: Cilraaz Date: Wed, 30 Sep 2015 10:44:20 -0400 Subject: [PATCH] Update to give client access to the proper AAs for the expansions allowed Bit shifting by expansion value minus 1, rather than expansion value --- zone/aa.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/aa.cpp b/zone/aa.cpp index 307eb3ba8..84fc4a1f4 100644 --- a/zone/aa.cpp +++ b/zone/aa.cpp @@ -1419,11 +1419,11 @@ bool Mob::CanUseAlternateAdvancementRank(AA::Rank *rank) { } if(IsClient()) { - if(!(CastToClient()->GetPP().expansions & (1 << rank->expansion))) { + if(!(CastToClient()->GetPP().expansions & (1 << (rank->expansion - 1)))) { return false; } } else { - if(!(RuleI(World, ExpansionSettings) & (1 << rank->expansion))) { + if(!(RuleI(World, ExpansionSettings) & (1 << (rank->expansion - 1)))) { return false; } }