Card: update the host for static abilties if the state is changed

This commit is contained in:
Hanmac
2017-02-16 05:28:26 +00:00
parent d47429445b
commit 93b0457526

View File

@@ -382,6 +382,11 @@ public class Card extends GameEntity implements Comparable<Card> {
currentStateName = state;
currentState = states.get(state);
// update the host for static abilities
for (StaticAbility sa : currentState.getStaticAbilities()) {
sa.setHostCard(this);
}
if (updateView) {
view.updateState(this);