void InitBuff() { // register all buff m_battleContext.RegisterBuffEffect((int)ENBuff.ControlMove, BuffEffectControlMove.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.AddUndown, BuffEffectAddUndown.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.NoDeadAddBuff, BuffEffectNoDeadAddBuff.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.StaminaChanged, BuffEffectStaminaChanged.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.Vampire, BuffEffectVampire.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.ContinuedReduceHP, BuffEffectContinuedReduceHP.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.ChangeDamage, BuffEffectChangeDamage.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.ChangeRestore, BuffEffectChangeRestore.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.ContinuedRestoreHP, BuffEffectContinuedRestoreHP.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.SkillSilence, BuffEffectSkillSilence.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.OffsetDamage, BuffEffectOffsetDamage.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.ControlAttack, BuffEffectControlAttack.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.ControlBeAttack, BuffEffectControlBeAttack.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.ReturnDamage, BuffEffectReturnDamage.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.DecreaseDamage, BuffEffectDecreaseDamage.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.ChangeModel, BuffEffectChangeMode.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.Halo, BuffEffectHalo.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.Chaos, BuffEffectChaos.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.ZeroCD, BuffEffectZeroCD.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.OutlawDeath, BuffEffectOutlawDeath.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.Fear, BuffEffectFear.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.IgnoreDebuff, BuffEffectIgnoreDebuff.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.BreakWithDamage, BuffEffectBreakWithDamage.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.Charm, BuffEffectCharm.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.Sneak, BuffEffectSneak.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.FindSneak, BuffEffectFindSneak.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.Teleport, BuffEffectTeleport.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.Plague, BuffEffectPlague.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.ChangeBuff, BuffEffectChangeBuff.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.DamageSuperimposition, BuffEffectDamageSuperimposition.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.KillSuperimposition, BuffEffectKillSuperimposition.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.HealthSuperimposition, BuffEffectHealthSuperimposition.CreateNew); m_battleContext.RegisterBuffEffect((int)ENBuff.DamageRacial, BuffEffectDamageRacial.CreateNew); }