forked from External/mage
Merge pull request #11178 from ssk97/MorphRework_v2
Morph rework and check spell characteristics
This commit is contained in:
commit
9456650693
283 changed files with 905 additions and 649 deletions
|
|
@ -328,8 +328,17 @@ public class SpellAbility extends ActivatedAbilityImpl {
|
|||
return spellCharacteristics;
|
||||
}
|
||||
|
||||
/**
|
||||
* Given a spell cast event, returns the relevant SpellAbility involved
|
||||
* Currently used to get the characteristics of the spell, specifically
|
||||
* for "can't cast" effects using CAST_SPELL_LATE events
|
||||
*
|
||||
* @param event
|
||||
* @param game
|
||||
* @return SpellAbility of the event
|
||||
*/
|
||||
public static SpellAbility getSpellAbilityFromEvent(GameEvent event, Game game) {
|
||||
if (event.getType() != GameEvent.EventType.CAST_SPELL) {
|
||||
if (event.getType() != GameEvent.EventType.CAST_SPELL && event.getType() != GameEvent.EventType.CAST_SPELL_LATE) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue