Erwan - fizzle spells that have invalid targets

This commit is contained in:
wagic.the.homebrew@gmail.com
2009-08-09 11:18:05 +00:00
parent 58c90c47ca
commit 4f76f50cdd
9 changed files with 94 additions and 48 deletions
+1 -1
View File
@@ -3369,7 +3369,7 @@ class AEarthbind:public ABasicAbilityModifier{
class AFireball:public InstantAbility{
public:
AFireball(int _id, MTGCardInstance * card, Spell * spell, int x):InstantAbility(_id, card){
int nbtargets = spell->cursor;
int nbtargets = spell->getNbTargets();
int totaldamage = x+1-nbtargets;
int individualdamage = 0;
if (nbtargets) individualdamage = totaldamage / nbtargets;