Update to give client access to the proper AAs for the expansions allowed

Bit shifting by expansion value minus 1, rather than expansion value
This commit is contained in:
Cilraaz committed 2015-09-30 12:58:05 -04:00
1 parent a1089fccd6
commit 8323f6af7b
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}
}