protected override bool Update() { if (m_fightStatus.localPlayerId != m_fightStatus.currentTurnPlayerId) { return(false); } if (m_creatureDropper.selected != null && !m_targeting) { m_targeting = true; } if (m_targeting) { CharacterDefinition selected = m_creatureDropper.selected; m_fightMap.SetTargetingPhase(from r in CellValidForCharacterFilter.EnumerateCells(m_fightStatus) select new Target(r)); } return(m_creatureDropper.get_isActiveAndEnabled()); }
protected IEnumerable <Target> EnumerateValidCellsFor(IEntityWithBoardPresence entity) { return(from r in (entity is MechanismStatus) ? CellValidForMechanismFilter.EnumerateCells(m_fightStatus) : CellValidForCharacterFilter.EnumerateCells(m_fightStatus) select new Target(r)); }