Fixed bug in Dragon Aura cps change display #734
This commit is contained in:
@@ -38,7 +38,7 @@ export default function CalculateChangeAura(aura) {
|
||||
SimDragonAura2 !== CacheDragonAura2
|
||||
) {
|
||||
for (let i = Game.ObjectsById.length - 1; i > -1; --i) {
|
||||
if (Game.ObjectsById[i - 1].amount > 0) {
|
||||
if (Game.ObjectsById[i].amount > 0) {
|
||||
const highestBuilding = SimObjects[Game.ObjectsById[i].name].name;
|
||||
SimObjects[highestBuilding].amount -= 1;
|
||||
SimBuildingsOwned -= 1;
|
||||
|
||||
Reference in New Issue
Block a user