We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Wizard Duel

Let's have ourselves a Wizard's duel.

Assignment

Complete the following methods on the Wizard class:

    • Reduce the fireball_damage by the wizard's __stamina
    • Reduce the wizard's health by the resulting fireball_damage
    • Increase the potion_mana by the wizard's __intelligence
    • Increase the wizard's mana by the resulting potion_mana

Both methods operate directly on the instance of the class (self). They take one input and return no values explicitly.