public Buff CreateBuff(string id, Champion caster, Champion target) { Buff buff = this._gPool.Pop <Buff>(); string rid = this._battle.random.IdHash(id); buff.OnCreate(this._battle, rid, caster, target); this._idToBuff[buff.rid] = buff; this._buffs.Add(buff); SyncEvent.CreateBuff(rid, caster.rid, target.rid); return(buff); }