7 | 8 | ||
---|---|---|---|
18 | { | 18 | { |
19 | var TargetTeleport = new EffectCast(EffectEnum.Teleport, this.CastInfos.SpellId, this.CastInfos.Caster.CellId, 0, 0, 0, 0, 0, this.Target, null); | 19 | var TargetTeleport = new EffectCast(EffectEnum.Teleport, this.CastInfos.SpellId, this.CastInfos.Caster.CellId, 0, 0, 0, 0, 0, this.Target, null); |
20 | var CasterTeleport = new EffectCast(EffectEnum.Teleport, this.CastInfos.SpellId, this.Target.CellId, 0, 0, 0, 0, 0, this.CastInfos.Caster, null); | 20 | var CasterTeleport = new EffectCast(EffectEnum.Teleport, this.CastInfos.SpellId, this.Target.CellId, 0, 0, 0, 0, 0, this.CastInfos.Caster, null); |
21 | | 21 | |
22 | this.Caster.SetCell(null); | ||
23 | this.Target.SetCell(null); | ||
24 | |||
22 | if (BuffSacrifice.Teleport.ApplyEffect(TargetTeleport) == -3) | 25 | if (BuffSacrifice.Teleport.ApplyEffect(TargetTeleport) == -3) |
23 | return -3; | 26 | return -3; |
24 | 27 | ||
... | ... | ||
25 | if (BuffSacrifice.Teleport.ApplyEffect(CasterTeleport) == -3) | 28 | if (BuffSacrifice.Teleport.ApplyEffect(CasterTeleport) == -3) |
26 | return -3; | 29 | return -3; |
27 | 30 | ||
28 | if (EffectDamage.ApplyDamages(DamageInfos, this.CastInfos.Caster, DamageValue) == -3) | 31 | if (EffectDamage.ApplyDamages(DamageInfos, this.CastInfos.Caster, ref DamageValue) == -3) |
29 | return -3; | 32 | return -3; |
30 | 33 | ||
31 | DamageValue = 0; | 34 | DamageValue = 0; |