Fix bug where new this() ability continuous effects would not deactivate if the condition became false after having already turned true.

This commit is contained in:
salmelo16
2010-04-12 16:27:10 +00:00
parent 16101f2bef
commit 73b494c32d
2 changed files with 2 additions and 0 deletions
Binary file not shown.
+2
View File
@@ -1898,6 +1898,8 @@ public:
//TODO check if ability is oneShot ? //TODO check if ability is oneShot ?
if (td->match(source) > 0){ if (td->match(source) > 0){
addAbilityToGame(); addAbilityToGame();
}else{
removeAbilityFromGame();
} }
if (ability->oneShot) a = NULL; //allows to call the effect several times if (ability->oneShot) a = NULL; //allows to call the effect several times
return 1; return 1;