v3.0.0: re-assigning the same quick cast spell now clears it
This commit is contained in:
@@ -213,9 +213,16 @@ public class HolyTome extends Artifact {
|
||||
private ClericSpell quickSpell = null;
|
||||
|
||||
public void setQuickSpell(ClericSpell spell){
|
||||
quickSpell = spell;
|
||||
if (passiveBuff != null){
|
||||
ActionIndicator.setAction((ActionIndicator.Action) passiveBuff);
|
||||
if (quickSpell == spell){
|
||||
quickSpell = null; //re-assigning the same spell clears the quick spell
|
||||
if (passiveBuff != null){
|
||||
ActionIndicator.clearAction((ActionIndicator.Action) passiveBuff);
|
||||
}
|
||||
} else {
|
||||
quickSpell = spell;
|
||||
if (passiveBuff != null){
|
||||
ActionIndicator.setAction((ActionIndicator.Action) passiveBuff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user