Created
August 23, 2016 05:13
-
-
Save aurorapar/d311addb08b782144f43e59736f122ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if dndPlayers[vindex]['shield'] > 0: | |
if dndPlayers[vindex]['shield'] >= damage: | |
dndPlayers[vindex]['shield'] -= damage | |
victim.health += damage | |
playerMessage(vindex, 'Your shield blocked %s damage'%damage) | |
else: | |
victim.health += dndPlayers[vindex]['shield'] | |
playerMessage(vindex, 'Your shield blocked %s damage and is now depeleted'%dndPlayers[vindex]['shield']) | |
dndPlayers[vindex]['shield'] = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment