Skip to content

Commit

Permalink
Fixed debug preview
Browse files Browse the repository at this point in the history
  • Loading branch information
HafisCZ committed Mar 9, 2023
1 parent f36aae0 commit a355d94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions simulator.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@
}

_generatePreview (p1, p2) {
const o1 = Localization._generateTranslation({}, p1);
const o2 = Localization._generateTranslation({}, p2);
const o1 = Localization._generateTranslation({}, Object.assign({}, p1, { State: '' }));
const o2 = Localization._generateTranslation({}, Object.assign({}, p2, { State: '' }));

const keys = new Set([ ...Object.keys(o1), ...Object.keys(o2) ]);
for (const bannedKey of ['Player.Identifier', 'Player.Prefix']) {
Expand All @@ -198,7 +198,7 @@
_stringifyState (state) {
const keys = new Set(Object.keys(state));

for (const bannedKey of ['Index', 'AttackFirst', 'SkipChance', 'CriticalChance', 'TotalHealth', 'Critical', 'DamageReduction', 'Initial', 'DamageTaken', 'BeforeDamageFinalized', 'BeforeAttack', 'RageCriticalChance']) {
for (const bannedKey of ['Index', 'AttackFirst', 'SkipChance', 'CriticalChance', 'TotalHealth', 'CriticalMultiplier', 'State', 'RageState', 'DamageReduction', 'DamageTaken', 'BeforeDamageFinalized', 'BeforeAttack']) {
keys.delete(bannedKey);
}

Expand Down

0 comments on commit a355d94

Please sign in to comment.