Exemple #1
0
        public override bool OnBeforeDeath()
        {
            if (ShadowguardController.GetEncounter(Location, Map) is FountainEncounter encounter)
            {
                ShadowguardCanal canal = new ShadowguardCanal();

                canal.MoveToWorld(Location, Map);
                encounter.AddShadowguardCanal(canal);
            }

            return(base.OnBeforeDeath());
        }
Exemple #2
0
        public override bool OnBeforeDeath()
        {
            FountainEncounter encounter = ShadowguardController.GetEncounter(this.Location, this.Map) as FountainEncounter;

            if (encounter != null)
            {
                var canal = new ShadowguardCanal();
                canal.MoveToWorld(this.Location, this.Map);
                encounter.AddShadowguardCanal(canal);
            }

            return(base.OnBeforeDeath());
        }