public bool acceptsAction(RiftAction action) { bool accepted = true; string spellId = action.SpellId; if (spellId != null) { string spellName = _spellRegistry.getSpellName(spellId, this.language); accepted = this.spellName.ToLowerInvariant().Equals(spellName.ToLowerInvariant()); } return accepted; }
public bool acceptsAction(RiftAction action) { if (this.filterList == null || filterList.Count == 0) { return false; } foreach (RiftActionFilter filter in this.filterList) { var subMatch = filter.acceptsAction(action); if (subMatch != this.andFilter) { return subMatch; } } return this.andFilter; }
public bool acceptsAction(RiftAction action) { bool matches = true; if ((matches) && (this.type != null)) { matches = this.type.Equals(action.ActionType); } if ((matches) && (this.casterId != null)) { matches = this.casterId.Equals(action.CasterId); } if ((matches) && (this.targetId != null)) { matches = this.targetId.Equals(action.TargetId); } if ((matches) && (this.spellId != null)) { matches = this.spellId.Equals(action.SpellId); } return matches; }