Пример #1
0
	def calcDamage(self, owner, target, attack, damageMod):
		from Code.Units.Stats import calcDamage, calcSpellDamage
		if self.isSpell:
			return calcSpellDamage(self.Damage, (owner.getSpellLevel(self.Guilds))) * self.DamageMod
		return calcDamage(attack, target.getStat("defense"), -5) * self.DamageMod * damageMod
Пример #2
0
	def calcDamage(self, owner, target, attack, damageMod):
		from Code.Units.Stats import calcDamage, calcSpellDamage
		if self.isSpell:
			return calcSpellDamage(self.damage, (self.owner.floor - 1) * 10)
		return calcDamage(attack, target.getStat("defense")) * damageMod