public Push(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { DamagesDisabled = effect.EffectId == EffectsEnum.Effect_PushBack_1103 || effect.EffectId == EffectsEnum.Effect_PullForward; Pull = effect.EffectId == EffectsEnum.Effect_PullForward; }
public override void Trigger(FightActor trigger) { base.NotifyTriggered(trigger, this.GlyphSpell); SpellCastHandler spellCastHandler = Singleton <SpellManager> .Instance.GetSpellCastHandler(base.Caster, this.GlyphSpell, trigger.Cell, false); spellCastHandler.MarkTrigger = this; spellCastHandler.Initialize(); spellCastHandler.Execute(); }
internal void NotifySpellCasted(SpellCast cast) { CastsHistory.AddSpellCast(cast); SpellCastHandler handler = SpellCasted; if (handler != null) { handler(this, cast); } }
//public SpellQueue spellQueue; private GameCore() { spellRepository = new SpellRepository(this); itemRepository = new ItemRepository(); spellCastHandler = new SpellCastHandler(); troopsHandler = new TroopsHandler(); chosenAccount = new Account(); chosenAccount.LoadAccData(); chosenAdventure = new Adventure(-1); espellHandler = new EnemySpellInfoHandler(); //spellQueue = new SpellQueue(); }
protected SpellEffectHandler(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect) { Dice = effect; Caster = caster; CastHandler = castHandler; TargetedCell = targetedCell; TargetedPoint = new MapPoint(TargetedCell); Critical = critical; Targets = effect.Targets; Category = SpellIdentifier.GetEffectCategories(effect.EffectId); DefaultDispellableStatus = FightDispellableEnum.DISPELLABLE; }
void OnSpellCasting(FightActor caster, SpellCastHandler spellCastHandler) { if (spellCastHandler.Informations.Critical == FightSpellCastCriticalEnum.CRITICAL_FAIL) { return; } var entries = caster.SpellHistory.GetEntries(x => x.Spell.SpellId == spellCastHandler.Spell.Id); if (!entries.Any()) { return; } UpdateStatus(ChallengeStatusEnum.FAILED); }
public override void Trigger(FightActor trigger) { base.NotifyTriggered(trigger, this.TrapSpell); MarkShape[] shapes = base.Shapes; for (int i = 0; i < shapes.Length; i++) { MarkShape markShape = shapes[i]; SpellCastHandler spellCastHandler = Singleton <SpellManager> .Instance.GetSpellCastHandler(base.Caster, this.TrapSpell, markShape.Cell, false); spellCastHandler.MarkTrigger = this; spellCastHandler.Initialize(); foreach (SpellEffectHandler current in spellCastHandler.GetEffectHandlers()) { current.EffectZone = new Zone((markShape.Shape == GameActionMarkCellsTypeEnum.CELLS_CROSS) ? SpellShapeEnum.Q : current.Effect.ZoneShape, markShape.Size); } spellCastHandler.Execute(); } }
public DispelMagicEffects(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { }
public DamageSharing(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { }
public SymetricTeleport(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { }
public SwitchPosition(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { }
public SpellEffectHandler GetSpellEffectHandler(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) { SpellEffectConstructor handler; return(m_spellsEffectHandler.TryGetValue(effect.EffectId, out handler) ? handler(effect, caster, castHandler, targetedCell, critical) : new DefaultSpellEffect(effect, caster, castHandler, targetedCell, critical)); }
public VitalityPercent(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { }
public ReduceBuffDuration(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { }
public RandomModifier(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { }
public GiveHpPercentWhenAttack(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { }
public ReviveAndGiveHP(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { }
public HealReceivedDamages(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { }
public RevealsInvisible(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { }
public KillAndSummon(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { }
public Attract(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { Pull = true; DamagesDisabled = true; }
public DirectDamage(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { BuffTriggerType = BuffTriggerType.Unknown; }
public DamageIntercept(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { DefaultDispellableStatus = FightDispellableEnum.DISPELLABLE_BY_DEATH; }
public TriggerGlyphs(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { }
public HPSteal(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { }
public AddState(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { DefaultDispellableStatus = DISPELABLE_STATES.Contains((SpellStatesEnum)Dice.Value) ? FightDispellableEnum.DISPELLABLE : FightDispellableEnum.DISPELLABLE_BY_DEATH; }
public TransmitCharacteristic(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { }
public PunishmentDamage(EffectDice effect, FightActor caster, SpellCastHandler castHandler, Cell targetedCell, bool critical) : base(effect, caster, castHandler, targetedCell, critical) { }