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:
Binary file not shown.
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user