Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/allmtz/AncientBeast
Browse files Browse the repository at this point in the history
  • Loading branch information
allmtz committed Feb 11, 2024
2 parents 02d4cce + b145551 commit 8469e93
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/abilities/Gumble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Trap } from '../utility/trap';
*/
export default (G: Game) => {
G.abilities[14] = [
// First Ability: Gooey Body
// First Ability: Gooey Body
{
// Update stat buffs whenever health changes
trigger: 'onCreatureSummon onDamage onHeal',
Expand Down Expand Up @@ -71,17 +71,17 @@ export default (G: Game) => {
_lastBonus: 0,
},

// Second Ability: Gummy Mallet
// Second Ability: Gummy Mallet
{
// Type : Can be "onQuery", "onStartPhase", "onDamage"
// Type : Can be "onQuery", "onStartPhase", "onDamage"
trigger: 'onQuery',

require: function () {
// Always usable, even if no targets
return this.testRequirements();
},

// query() :
// query() :
query: function () {
const ability = this;
// Gummy Mallet can hit a 7-hexagon circular area in 6 directions, where the
Expand Down Expand Up @@ -151,7 +151,7 @@ export default (G: Game) => {
damages = enemyDamages;
}
const dmg = new Damage(this.creature, damages, targets[i].hexesHit, [], G);
// Increment kills if the target is killed
// Increment kills if the target is killed
kills += targets[i].target.takeDamage(dmg).kill ? 1 : 0;
}
if (kills > 1) {
Expand All @@ -163,17 +163,17 @@ export default (G: Game) => {
},
},

// Thirt Ability: Royal Seal
// Third Ability: Royal Seal
{
// Type : Can be "onQuery", "onStartPhase", "onDamage"
// Type : Can be "onQuery", "onStartPhase", "onDamage"
trigger: 'onQuery',

// require() :
// require() :
require: function () {
return this.testRequirements();
},

// query() :
// query() :
query: function () {
const ability = this;
const creature = this.creature;
Expand All @@ -198,7 +198,7 @@ export default (G: Game) => {
});
},

// activate() :
// activate() :
activate: function (hex: Hex) {
this.end();
const ability = this;
Expand Down Expand Up @@ -269,15 +269,15 @@ export default (G: Game) => {
},
},

// Fourth Ability: Boom Box
// Fourth Ability: Boom Box
{
// Type : Can be "onQuery", "onStartPhase", "onDamage"
// Type : Can be "onQuery", "onStartPhase", "onDamage"
trigger: 'onQuery',

directions: [1, 1, 1, 1, 1, 1],
_targetTeam: Team.Enemy,

// require() :
// require() :
require: function () {
if (!this.testRequirements()) {
return false;
Expand All @@ -294,7 +294,7 @@ export default (G: Game) => {
return true;
},

// query() :
// query() :
query: function () {
const ability = this;
const crea = this.creature;
Expand All @@ -314,7 +314,7 @@ export default (G: Game) => {
});
},

// activate() :
// activate() :
activate: function (path, args) {
const ability = this;
ability.end();
Expand Down

0 comments on commit 8469e93

Please sign in to comment.