J :
* Fix a bug where a cast life spell would randomly not work.
This commit is contained in:
@@ -1136,9 +1136,9 @@ class ASpellCastLife:public MTGAbility{
|
||||
int life;
|
||||
MTGCardInstance * lastUsedOn;
|
||||
MTGCardInstance * lastChecked;
|
||||
ASpellCastLife(int id, MTGCardInstance * _source, CardDescriptor _trigger, ManaCost * _cost, int _life): MTGAbility(id, _source), trigger(_trigger), cost(_cost), life(_life){
|
||||
ASpellCastLife(int id, MTGCardInstance * _source, CardDescriptor _trigger, ManaCost * _cost, int _life): MTGAbility(id, _source), trigger(_trigger), cost(_cost), life(_life), lastUsedOn(NULL), lastChecked(NULL) {
|
||||
}
|
||||
ASpellCastLife(int id, MTGCardInstance * _source, int color, ManaCost * _cost, int _life): MTGAbility(id, _source), cost(_cost), life(_life){
|
||||
ASpellCastLife(int id, MTGCardInstance * _source, int color, ManaCost * _cost, int _life): MTGAbility(id, _source), cost(_cost), life(_life), lastUsedOn(NULL), lastChecked(NULL) {
|
||||
trigger.setColor(color);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user