Beispiel #1
0
    def process(self, percent):
        heal = smarty.get_heal(self.who_character, percent, self.spell_info.base_amount, self.whom_character)
        if smarty.is_critical_magic_hit(self.who_character, self.whom_character):
            self.heal *= 1.5

        self.heal = min(self.whom_character.health + heal, self.whom_character.full_health) - self.whom_character.health
        self.whom_character.health += self.heal

        self.experience = smarty.get_experience_for_spell_heal(self.heal)
Beispiel #2
0
    def process(self, percent):
        self.experience = 0
        self.damage = smarty.get_spell_damage(self.who_character, percent, self.spell_info.base_amount, self.whom_character)
        if smarty.is_critical_magic_hit(self.who_character, self.whom_character):
            self.damage *= 1.5

        if self.who_character.name != self.whom_character.name:
            self.experience = smarty.get_experience_for_spell_damage(self.damage)
        self.whom_character.health -= self.damage