Skip to content

Commit 23f3755

Browse files
authored
fix: remove 'fake' tribes
1 parent 905dea8 commit 23f3755

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

public/resources/modules/effects.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
export const effects = [];
22
export const specials = ['ATK', 'DMG', 'HP', 'KR', 'cost', 'G', 'TOKEN', 'BASE', 'COMMON', 'RARE', 'EPIC', 'LEGENDARY', 'DT'];
33

4+
const tribeBlacklist = ['tem', 'frog']
5+
46
const div = document.querySelector('#descriptionTip div');
57
function addType(type) {
68
const el = document.createElement('span');
@@ -19,7 +21,9 @@ function addTribes() {
1921
const last = container.querySelector('img:last-child');
2022
effects.forEach((effect) => {
2123
if (!effect.endsWith('?')) return;
22-
last.before(getTribe(effect.substring(0, effect.length - 2)));
24+
const name = effect.substring(0, effect.length - 2);
25+
if (tribeBlacklist.includes(name)) return;
26+
last.before(getTribe(name));
2327
});
2428
document.querySelector('#selectTribe').innerHTML = container.innerHTML;
2529
}

0 commit comments

Comments
 (0)