You are on page 1of 1

/**

@filename

Attack.js

@author

kolton

@desc

handle player attacks

*/

var Attack = {
classes: ["Amazon", "Sorceress", "Necromancer", "Paladin", "Barbarian",
"Druid", "Assassin"],
infinity: false,

// Initialize attacks
init: function () {
if (Config.Wereform) {
include("common/Attacks/wereform.js");
} else {
include("common/Attacks/" + this.classes[me.classid] +
".js");
}

if (Config.AttackSkill[1] < 0 || Config.AttackSkill[3] < 0) {


showConsole();
print("c1Bad attack config. Don't expect your bot to
attack.");
}

if (me.gametype === 1) {
this.checkInfinity();
this.getCharges();
}

You might also like