MCPcopy
hub / github.com/FreezingMoon/AncientBeast / scoreAbilityHex

Function scoreAbilityHex

src/bots/Gumble.ts:385–404  ·  view source on GitHub ↗
(hex, abilityIndex, controller)

Source from the content-addressed store, hash-verified

383 },
384
385 scoreAbilityHex(hex, abilityIndex, controller) {
386 const activeCreature = controller.game.activeCreature;
387 if (!activeCreature) {
388 return undefined;
389 }
390
391 if (abilityIndex === ABILITY.GUMMY_MALLET) {
392 return scoreGummyMallet(hex, activeCreature, controller);
393 }
394
395 if (abilityIndex === ABILITY.PRETTY_RIBBON) {
396 return scorePrettyRibbon(hex, activeCreature, controller);
397 }
398
399 if (abilityIndex === ABILITY.BOOM_BOX) {
400 return scoreBoomBox(hex, activeCreature, controller);
401 }
402
403 return undefined;
404 },
405
406 getAbilityPriority(creature, controller) {
407 const supportMode = hasBiggerAlliedFrontliner(creature, controller);

Callers 9

impaler.tsFile · 0.50
golden-wyrm.tsFile · 0.50
gumble.tsFile · 0.50
cycloper.tsFile · 0.50
snow-bunny.tsFile · 0.50
stomper.tsFile · 0.50
dark-priest.tsFile · 0.50
cyber-wolf.tsFile · 0.50
vehemoth.tsFile · 0.50

Calls 3

scoreGummyMalletFunction · 0.85
scorePrettyRibbonFunction · 0.85
scoreBoomBoxFunction · 0.85

Tested by

no test coverage detected