forked from Pyrophoenix100/CommanderSpellbook
/
index.html
518 lines (475 loc) · 21.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
<!DOCTYPE html>
<html>
<head>
<!--Meta-->
<title>Commander Spellbook - Combo Database for Commander (EDH)</title>
<meta name="description"
content="The Premier Magic: the Gathering Combo Database for the Commander / Elder Dragon Highlander (EDH) Format.">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--Favicon-->
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon-16x16.png">
<link rel="manifest" href="favicon/site.webmanifest">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-0LPW4VGE0F"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-0LPW4VGE0F');
</script>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<!-- CSS -->
<link rel="stylesheet" href="css/style.css" />
<!-- JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous" defer>
</script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous">
</script>
<!-- Deckbox Tooltips-->
<script src="https://deckbox.org/assets/external/tooltip.js" defer></script>
</head>
<body>
<!--Nav Bar-->
<nav class="navbar navbar-expand-xl navbar-light bg-light">
<a class="navbar-brand" href="#">Commander Spellbook</a>
<span class="navbar-text">
Combo Database for EDH
</span>
<button class="navbar-toggler navbar-right" type="button" data-toggle="collapse" data-target="#navbar"
aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbar">
<ul class="nav navbar-nav navbar-right ml-auto">
<li class="nav-item">
<button class="btn btn-success d-none d-lg-inline-block" data-toggle="modal"
data-target="#submitComboModal">Submit</button>
<a class="d-inline d-lg-none" role="button" data-toggle="modal" data-target="#submitComboModal">Submit a
Combo</a>
</li>
<li class="nav-item">
<button class="btn btn-dark d-none d-lg-inline-block" data-toggle="modal"
data-target="#metricsModal">Metrics</button>
<a class="d-inline d-lg-none" role="button" data-toggle="modal" data-target="#metricsModal">Combo Metrics</a>
</li>
<li class="nav-item">
<button class="btn btn-dark d-none d-lg-inline-block" data-toggle="modal"
data-target="#searchTipsModal">Search Tips</button>
<a class="d-inline d-lg-none" role="button" data-toggle="modal" data-target="#searchTipsModal">Search
Tips</a>
</li>
<li class="nav-item">
<button class="btn btn-dark d-none d-lg-inline-block" data-toggle="modal"
data-target="#definitionModal">Definitions</button>
<a class="d-inline d-lg-none" role="button" data-toggle="modal" data-target="#definitionModal">Definitions</a>
</li>
<li class="nav-item">
<a class="btn btn-dark d-none d-lg-inline-block" role="button" target="_blank"
href="https://discord.com/invite/DkAyVJG">Discord</a>
<a class="d-inline d-lg-none" role="button" target="_blank"
href="https://discord.com/invite/DkAyVJG">Discord</a>
</li>
<li class="nav-item">
<button class="btn btn-dark d-none d-lg-inline-block" data-toggle="modal"
data-target="#aboutModal">About</button>
<a class="d-inline d-lg-none" role="button" data-toggle="modal" data-target="#aboutModal">About</a>
</li>
</ul>
</div>
</nav>
<!--Main Div-->
<div class="container-fluid" id="global">
<!-- Input Form -->
<input class="form-control w-100" id="card-input" ftype="text"
placeholder="Loading combos may take up to 10 seconds..." onkeyup="filterCombos()">
<!-- Color Identity Selector -->
<div id="colorIdentitySelector">
<div class="align-self-center" id="filter-by-color">
Filter
</div>
<div class="img-responsive" id="manaC">
<div class="image-checkbox"><img src="images/mana/manac.png" width="40" alt="colorless combos"></div>
</div>
<div class="img-responsive" id="manaW">
<div class="image-checkbox"><img src="images/mana/manaw.png" width="40" alt="white combos"></div>
</div>
<div class="img-responsive" id="manaU">
<div class="image-checkbox"><img src="images/mana/manau.png" width="40" alt="blue combos"></div>
</div>
<div class="img-responsive" id="manaB">
<div class="image-checkbox"><img src="images/mana/manab.png" width="40" alt="black combos"></div>
</div>
<div class="img-responsive" id="manaR">
<div class="image-checkbox"><img src="images/mana/manar.png" width="40" alt="red combos"></div>
</div>
<div class="img-responsive" id="manaG">
<div class="image-checkbox"><img src="images/mana/manag.png" width="40" alt="green combos"></div>
</div>
</div>
<!-- Load metrics.js -->
<script src="js/metrics.js"></script>
<!-- Amazon Ads -->
<!-- <div id="amzn-assoc-ad-f954005a-3633-4396-85ee-c92c7dd1df14"></div>
<script async
src="//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&adInstanceId=f954005a-3633-4396-85ee-c92c7dd1df14">
</script> -->
<!-- Combos Table -->
<table class="table" id="no-more-tables">
<thead>
<tr>
<th width="15%">
<center>CARDS</center>
</th>
<th width="15%">
<center>IDENTITY</center>
</th>
<th width="20%">
<center>PREREQUISITES</center>
</th>
<th width="25%">
<center>STEPS</center>
</th>
<th width="15%">
<center>RESULT</center>
</th>
<th width="10%">
<center>COMBO ID</center>
</th>
</tr>
</thead>
<tbody id="combos"></tbody>
</table>
</div>
</div>
<!-- Submit Combo Modal -->
<div class="modal fade" id="submitComboModal" tabindex="-1" role="dialog" aria-labelledby="submitComboModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="submitComboModalLabel">Want to Submit a Combo?</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
At this time, combo submissions (and updates) are only being accepted via <a target="_blank"
href="https://discord.gg/KDnvP5f">Discord</a>, as we've learned from experience that
many of them require a discussion. If your combo isn't listed here, or if you've found a bug with one of our combos, please join us on Discord to
contribute to the catalog.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<a role="button" class="btn btn-success" target="_blank" href="https://discord.gg/KDnvP5f">Join us on
Discord</a>
</div>
</div>
</div>
</div>
<!-- Metrics Modal -->
<div class="modal fade" id="metricsModal" tabindex="-1" role="dialog" aria-labelledby="metricsLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="metricsLabel">Combo Metrics</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<table class="table">
<thead>
<tr>
<th width="38%">
<center>METRIC</center>
</th>
<th width="57%">
<center>IDENTITY</center>
</th>
<th width="5%">
<center>COUNT</center>
</th>
</tr>
</thead>
<tbody id="metrics"></tbody>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Search Tips Modal -->
<div class="modal fade" id="searchTipsModal" tabindex="-1" role="dialog" aria-labelledby="searchTipsLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="searchTipsLabel">Search Tips</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<ul>
<li>Type in the name of a single card, a Combo ID, or a Combo Result (see table below) to search the
database.</li>
<li>Use the color filter bar to search for combos in a specific color combination.</li>
</ul>
<table class="table">
<thead>
<tr>
<th width="40%">
<center>Combo Result</center>
</th>
<th width="60%">
<center>Definition</center>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>Exile all opponents' libraries</td>
<td>Combo results in exiling all the cards in all of your opponents libraries.</td>
</tr>
<tr>
<td>Infinite Colored Mana</td>
<td>Combo has the potential of producing infinite mana of all colors.</td>
</tr>
<tr>
<td>Infinite Colorless Mana</td>
<td>Combo produces infinite colorless mana.</td>
</tr>
<tr>
<td>Infinite Damage</td>
<td>Combo results in dealing infinite damage to creatures and/or players.</td>
</tr>
<tr>
<td>Infinite Death Triggers</td>
<td>Combo results in an infinite amount of death triggers on the stack.</td>
</tr>
<tr>
<td>Infinite ETB</td>
<td>Combo results in an infinite amount of Enter the Battleground triggers on the stack.</td>
</tr>
<tr>
<td>Infinite Life drain</td>
<td>Combo results in a player drainging opponents down to 0 life.</td>
</tr>
<tr>
<td>Infinite Lifegain</td>
<td>Combo results in a player gaining infinite life.</td>
</tr>
<tr>
<td>Infinite Loot</td>
<td>Combo results in an infinite amount of draw and discard effects.</td>
</tr>
<tr>
<td>Infinite LTB</td>
<td>Combo results in an infinite amount of Leave the Battleground triggers on the stack.</td>
</tr>
<tr>
<td>Infinite Mill</td>
<td>Combo causes a player to place all of the cars in their librarary into their graveyard.</td>
</tr>
<tr>
<td>Infinite Sac Triggers</td>
<td>Combo results in an infinite amount of sacrifice triggers on the stack.</td>
</tr>
<tr>
<td>Infinite Scry</td>
<td>Combo results in an infinite amount of scry triggers on the stack.</td>
</tr>
<tr>
<td>Infinite Storm Count</td>
<td>Combo results in a player casting an infinite amount of spells in a given turn.</td>
</tr>
<tr>
<td>Infinite Turns</td>
<td>Combo results in infinite turns for the player.</td>
</tr>
<tr>
<td>Win the game</td>
<td>Combo results in you instantly winning the game due to an alternate win condition.</td>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Definition Modal -->
<div class="modal fade" id="definitionModal" tabindex="-1" role="dialog" aria-labelledby="definitionLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="definitionLabel">Combo Defintions</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<strong>What is the definition of a combo?</strong>
<br>For the sake of this catalogue, a combo is defined as an interaction between two or more cards that result
in an infinite or near-infinite interaction loop, or an almost-assured win.
<br><br><strong>What is the definition of a reasonable combo?</strong>
<br>A reasonable combo is defined as a combo that does not require a serendipitous hand or board state to pull
off. It is a combo that is repeatable with high fidelity. Aside from specific combo-lines (e.g., Doomsday,
Birthing Pod, etc.), a combo should contain no more than 5 cards (excluding mana producers like dorks/rocks).
<br><br><strong>What does infinite mean?</strong>
<br>An interaction that can go on forever unless the Active Player wills it to stop.
<br><br><strong>What does near-infinite mean?</strong>
There is an upper-bound to how many times a loop can occur. The upper-bound is usually determined by the
number of cards in a specific zone, such as a player’s library, graveyard, or hand, or it is limited by a
resource, such as life.
<br><br><strong>What does almost-assured win mean?</strong>
When the combo resolves, the game is left in a state (e.g., board, hands) where only a statistically
improbable play will let opponents prevent you from winning the game. In other words, everybody, save for the
Active Player, decides to scoop.
<br><br><strong>What is considered to be a lock?</strong>
A lock is an interaction formed by two or more cards that result in your opponents' inability to perform
game actions such as casting spells. Found in #locks
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- About Modal -->
<div class="modal fade" id="aboutModal" tabindex="-1" role="dialog" aria-labelledby="aboutLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="aboutLabel">About</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
The Commander Spellbook website was created to catalog and centralize all reasonable Magic: the Gathering
combos for singleton formats. For this reason, the <a
href="https://mtgcommander.net/index.php/banned-list/">Official Commander Banlist</a> is ignored.
<p>
<p>The data powering the website, and the source code for the website itself, are <a
href="https://opensource.org/licenses/MIT" target="_blank">completely free and open
source under the MIT License</a>. Simply provide us credit on your app if you consume the spreadsheet
and/or API.</p>
</p>
<p><strong>We encourage you copy this data so that it lives on!</strong></p>
<ul>
<li><a target="_blank" href="https://github.com/ArtSabintsev/CommanderSpellbook">Website Source Code on
GitHub</a></li>
<li><a target="_blank"
href="https://docs.google.com/spreadsheets/d/1JJo8MzkpuhfvsaKVFVlOoNymscCt-Aw-1sob2IhpwXY/">Combo
Database Backend on Google Sheets</a></li>
<li><a target="_blank"
href="https://sheets.googleapis.com/v4/spreadsheets/1JJo8MzkpuhfvsaKVFVlOoNymscCt-Aw-1sob2IhpwXY/values:batchGet?ranges=combos!A2:O&key=AIzaSyDzQ0jCf3teHnUK17ubaLaV6rcWf9ZjG5E">Combo
Database GET API on Google Sheets</a></li>
</ul>
<strong>Thanks for visiting!</strong>
<br><br>~<a href="https://github.com/ArtSabintsev/" target="_blank">Arthur "Senior Edificer" Sabintsev</a>
<br>~Andrew Burger
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- UI Updating Methods -->
<script>
var checkboxes = document.querySelectorAll('.image-checkbox');
checkboxes.forEach(function (checkbox) {
checkbox.classList.add('checked');
checkbox.addEventListener('click', function (e) {
e.currentTarget.classList.toggle('checked');
filterCombos();
});
});
// Filter by Search Input
function filterCombos() {
console.log(document.querySelector('#manaW > .image-checkbox').classList.contains('checked'));
filter = $("#card-input").val().toLowerCase();
$("#combos tr").filter(function () {
let matchedText = $(this).text().toLowerCase().indexOf(filter)
$(this).toggle(matchedText > -1 && inIdentity($(this)));
});
tableStriping();
};
// Filter by Color Identity
function inIdentity(context) {
colorless = document.querySelector('#manaC > .image-checkbox').classList.contains('checked')
white = document.querySelector('#manaW > .image-checkbox').classList.contains('checked')
blue = document.querySelector('#manaU > .image-checkbox').classList.contains('checked')
black = document.querySelector('#manaB > .image-checkbox').classList.contains('checked')
red = document.querySelector('#manaR > .image-checkbox').classList.contains('checked')
green = document.querySelector('#manaG > .image-checkbox').classList.contains('checked')
tdColorless = context.children("#tdColorIdentity").children().prop("outerHTML").indexOf("colorless") > -1;
if (!colorless && tdColorless) {
return false;
}
tdWhite = context.children("#tdColorIdentity").children().prop("outerHTML").indexOf("white") > -1;
if (!white && tdWhite) {
return false;
}
tdBlue = context.children("#tdColorIdentity").children().prop("outerHTML").indexOf("blue") > -1;
if (!blue && tdBlue) {
return false;
}
tdBlack = context.children("#tdColorIdentity").children().prop("outerHTML").indexOf("black") > -1;
if (!black && tdBlack) {
return false;
}
tdRed = context.children("#tdColorIdentity").children().prop("outerHTML").indexOf("red") > -1;
if (!red && tdRed) {
return false;
}
tdGreen = context.children("#tdColorIdentity").children().prop("outerHTML").indexOf("green") > -1;
if (!green && tdGreen) {
return false;
}
return true;
}
// Re-apply table striping on search
function tableStriping() {
$("tr:visible").each(function (index) {
$(this).css("background-color", !!(index & 1) ? "rgba(0,0,0,.05)" : "rgba(0,0,0,0)");
});
}
</script>
</div>
</body>
<footer>
<div class="container" width="50%">
Magic: The Gathering and Commander are trademarks of Wizards of the Coast LLC in the United
States and other countries. The Spellbook (EXO) imagery used on this site are copyright of Wizards of the Coast LLC.
Commander Spellbook is not affiliated with, endorsed, sponsored, or specifically
approved by Wizards of the Coast LLC. Commander Spellbook may use the trademarks and other intellectual property of
Wizards of the Coast LLC, which is permitted under Wizards' Fan Site Policy. MAGIC: THE GATHERING® is a trademark of
Wizards of the Coast. For more
information about Wizards of the Coast or any of Wizards' trademarks or other intellectual property, please visit
their
website at <a href="https://company.wizards.com/">https://company.wizards.com/</a>.
</div>
<!-- Load combos.js after page loads -->
<script src="js/combos.js"></script>
</footer>
</html>