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

View File

@@ -1898,6 +1898,8 @@ public:
//TODO check if ability is oneShot ?
if (td->match(source) > 0){
addAbilityToGame();
}else{
removeAbilityFromGame();
}
if (ability->oneShot) a = NULL; //allows to call the effect several times
return 1;