Erwan
- fixed a bug (crash if a card that had an ability until end of turn would be put into the graveyard before the end of the turn) - Added a new game Mode : Random 1 or 2 color.
This commit is contained in:
@@ -661,7 +661,8 @@ class AInstantBasicAbilityModifierUntilEOT: public InstantAbility{
|
||||
}
|
||||
|
||||
int destroy(){
|
||||
((MTGCardInstance *)target)->basicAbilities[ability] = stateBeforeActivation;
|
||||
MTGCardInstance * _target = (MTGCardInstance *)target;
|
||||
if (_target) _target->basicAbilities[ability] = stateBeforeActivation;
|
||||
return 1;
|
||||
}
|
||||
virtual ostream& toString(ostream& out) const
|
||||
|
||||
Reference in New Issue
Block a user