public BattleWellPiece(BattleWell well, int itemid) : base(itemid) { Well = well; }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); switch (version) { case 0: Well = reader.ReadItem<BattleWell>(); break; } }
public virtual void InvalidateBattleWell() { if (State == PvPBattleState.Internal || BattleWellLoc.Internal || BattleWellLoc.Zero) { if (BattleWell != null) { BattleWell.Delete(); BattleWell = null; } return; } if (BattleWell == null || BattleWell.Deleted) { BattleWell = new BattleWell(this); if (!BattleWellLoc.MoveToWorld(BattleWell)) { BattleWell.MoveToWorld(BattleWellLoc, BattleWellLoc); } } if (BattleWell.Battle == null) { BattleWell.Battle = this; } }