Sprite_Damage.prototype.setup = function (target) {
var result = target.result();
/*if (result.missed || result.evaded) {
this.createMiss();
}
else
{*/
if (result.hpAffected && (target.isAlive() && result.mpDamage !== 0)) {
//this.createElementRate(target);
this.createDoubleDigits(target);
}
else if (result.hpAffected) {
//this.createElementRate(target);
this.createDigits(0, result.hpDamage);
}
else if (target.isAlive() && result.mpDamage !== 0) {
this.createDigits(2, result.mpDamage);
}
//}
if (result.critical) {
this.setupCriticalEffect();
}
/*if (result.counter) { this.createCounter() }
else if (result.reflection) { this.createReflection() };*/
};