//public bool canTrigger(int code) //{ // return this._effectCodes.IndexOf(code) != -1; //} public IBattleProperties applyTo(IBattleProperties props) { int count = this._effectList.Count; ISkillEffect effect; for (int i=0;i<count;i++) { effect = this._effectList[i]; if ( effect.getCode() == props.getCode() ) { props = effect.applyTo(props); } } return props; }