• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ Is25ManRaid函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中Is25ManRaid函数的典型用法代码示例。如果您正苦于以下问题:C++ Is25ManRaid函数的具体用法?C++ Is25ManRaid怎么用?C++ Is25ManRaid使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了Is25ManRaid函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: JustDied

            void JustDied(Unit* killer) override
            {
                _JustDied();
                Talk(SAY_DEATH);

                if (Is25ManRaid() && me->HasAura(SPELL_SHADOWS_FATE))
                    DoCastAOE(SPELL_BLOOD_INFUSION_CREDIT, true);

                CleanAuras();
                // Blah, credit the quest
                if (_creditBloodQuickening)
                {
                    instance->SetData(DATA_BLOOD_QUICKENING_STATE, DONE);
                    if (Player* player = killer->ToPlayer())
                        player->RewardPlayerAndGroupAtEvent(Is25ManRaid() ? NPC_INFILTRATOR_MINCHAR_25 : NPC_INFILTRATOR_MINCHAR_BQ, player);
                    if (Creature* minchar = me->FindNearestCreature(NPC_INFILTRATOR_MINCHAR_BQ, 200.0f))
                    {
                        minchar->SetUInt32Value(UNIT_NPC_EMOTESTATE, 0);
                        minchar->RemoveByteFlag(UNIT_FIELD_BYTES_1, 3, UNIT_BYTE1_FLAG_ALWAYS_STAND);
                        minchar->SetCanFly(false);
                        minchar->RemoveAllAuras();
                        minchar->GetMotionMaster()->MoveCharge(4629.3711f, 2782.6089f, 401.5301f, SPEED_CHARGE / 3.0f);
                    }
                }
            }
开发者ID:mynew,项目名称:Core,代码行数:25,代码来源:boss_blood_queen_lana_thel.cpp


示例2: Reset

 void Reset() override
 {
     if (!Is25ManRaid()) {
         me->ApplySpellImmune(0, IMMUNITY_EFFECT, SPELL_EFFECT_BIND, true);
         me->ApplySpellImmune(0, IMMUNITY_MECHANIC, MECHANIC_CHARM, true);
     }
 }
开发者ID:DanielBallaSZTE,项目名称:TrinityCorePreWOTLK,代码行数:7,代码来源:boss_faerlina.cpp


示例3: Reset

 void Reset()
 {
     events.ScheduleEvent(EVENT_HEROIC_STRIKE, urand(4000, 8000));
     if (Is25ManRaid())
         events.ScheduleEvent(EVENT_WHIRLWIND, urand(5000, 10000));  // Due to wowhead, whirlwind is only scheduled in 25-man-raid
     events.ScheduleEvent(EVENT_BATTLE_SHOUT, urand(15000, 30000));
 }
开发者ID:Marchmalo,项目名称:TrinityElron103,代码行数:7,代码来源:boss_razorscale.cpp


示例4: UpdateAI

            void UpdateAI(uint32 const diff)
            {
                if (!UpdateVictim())
                    return;

                events.Update(diff);

                while (uint32 eventId = events.ExecuteEvent())
                {
                    switch (eventId)
                    {
                        case EVENT_NECROTIC_AURA:
                            DoCastAOE(SPELL_NECROTIC_AURA);
                            events.ScheduleEvent(EVENT_NECROTIC_AURA, 20000);
                            break;
                        case EVENT_DEATHBLOOM:
                            DoCastAOE(SPELL_SUMMON_SPORE, true);
                            DoCastAOE(SPELL_DEATHBLOOM);
                            events.ScheduleEvent(EVENT_DEATHBLOOM, 30000);
                            break;
                        case EVENT_INEVITABLE_DOOM:
                            DoCastAOE(RAID_MODE<uint32>(SPELL_INEVITABLE_DOOM_10, SPELL_INEVITABLE_DOOM_25));
                            events.ScheduleEvent(EVENT_INEVITABLE_DOOM, events.GetTimer() < 5*60000 ? 30000 : 15000);
                            break;
                        case EVENT_BERSERK:
                            if (Is25ManRaid() && !me->HasAura(SPELL_BERSERK))
                                DoCast(me, SPELL_BERSERK, true);
                            events.ScheduleEvent(EVENT_BERSERK, 60000);
                            break;
                    }
                }

                DoMeleeAttackIfReady();
            }
开发者ID:boom8866,项目名称:new,代码行数:34,代码来源:boss_loatheb.cpp


示例5: UpdateAI

			void UpdateAI(const uint32 diff)
			{
				if (!UpdateVictim())
					return;

				_events.Update(diff);

				if (me->HasUnitState(UNIT_STAT_CASTING))
                    return;

				while (uint32 eventId = _events.ExecuteEvent())
                {
                    switch (eventId)
                    {
						case EVENT_FLAME_WAVE:
							DoCast(me, SPELL_FLAME_WAVE);
							_events.ScheduleEvent(EVENT_FLAME_WAVE, 25000);
							break;
						case EVENT_SCORCH:
							if (Is25ManRaid())
								DoCastVictim(SPELL_SCORCH_25MAN);
							else
								DoCastVictim(SPELL_SCORCH);
							_events.ScheduleEvent(EVENT_SCORCH, 5000);
							break;
					}
				}

				DoMeleeAttackIfReady();
			}
开发者ID:gyullo,项目名称:Ruby,代码行数:30,代码来源:ruby_sanctum.cpp


示例6: UpdateAI

            void UpdateAI(uint32 const diff)
            {
                if (!UpdateVictim())
                    return;

                if (HeroicTimer <= diff)
                {
                    DoCastVictim(SPELL_HEROIC_STRIKE);
                    HeroicTimer = urand(4000, 6000);
                }
                else
                    HeroicTimer -= diff;

                if (Is25ManRaid())
                    if (WhirlTimer <= diff)
                    {
                        DoCast(me, SPELL_WHIRLWIND);
                        WhirlTimer = urand(15000, 20000);
                    }
                    else
                        WhirlTimer -= diff;

                if (ShoutTimer <= diff)
                {
                    DoCast(me, RAID_MODE<uint32>(SPELL_BATTLE_SHOUT, SPELL_BATTLE_SHOUT_25));
                    ShoutTimer = urand(30000, 40000);
                }
                else
                    ShoutTimer -= diff;

                DoMeleeAttackIfReady();
            }
开发者ID:kamir86,项目名称:TrinityCore,代码行数:32,代码来源:boss_razorscale.cpp


示例7: EnterCombat

            void EnterCombat(Unit* who)
            {
                BossAI::EnterCombat(who);
                Talk(SAY_AGGRO);

                events.ScheduleEvent(EVENT_CLEAVE, 9000);
                events.ScheduleEvent(EVENT_INTIDMDATING_ROAR, 14000);
                events.ScheduleEvent(EVENT_SUMMON_ADDS1, 18000);
                if (Is25ManRaid())
                    events.ScheduleEvent(EVENT_SUMMON_ADDS2, 20000);
            }
开发者ID:Helias,项目名称:azerothcore-wotlk,代码行数:11,代码来源:boss_general_zarithrian.cpp


示例8: StartGroundPhase

		void StartGroundPhase()
		{
			me->SetReactState(REACT_AGGRESSIVE);
			me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
			me->SetControlled(false, UNIT_STATE_ROOT);

			events.Reset();
			events.ScheduleEvent(EVENT_MOVE_TO_BALCONY, (totalPhase < 2 ? 110000 : (110000 / totalPhase)));
			events.ScheduleEvent(EVENT_SPELL_CURSE, 15000);
			events.ScheduleEvent(EVENT_SUMMON_PLAGUED_WARRIOR_ANNOUNCE, 25000);
			if (Is25ManRaid())
				events.ScheduleEvent(EVENT_SPELL_BLINK, 26000);
		}
开发者ID:AlexHjelm,项目名称:sunwell,代码行数:13,代码来源:boss_noth.cpp


示例9: CastMagmaSpit

        void CastMagmaSpit()
        {
            Map::PlayerList const &PlayerList = me->GetMap()->GetPlayers();

            if (!PlayerList.isEmpty())
                for (uint8 i = 0; i <= (Is25ManRaid() ? 8 : 2); ++i)
                    if (Unit* target = SelectTarget(SELECT_TARGET_TOPAGGRO, i))
                    {
                        if (!me->IsWithinDistInMap(me->GetVictim(), 15.0f)) // Check tank in range for enrage.
                            DoCast(target, SPELL_MAGMA_SPIT_TANTRUM);
                        else
                            DoCast(target, SPELL_MAGMA_SPIT_N);
                    }
        }
开发者ID:redlaine,项目名称:InfinityCore-Ark,代码行数:14,代码来源:boss_magmaw.cpp


示例10: EnterCombat

 void EnterCombat(Unit* /*attacker*/) override
 {
     scheduler.Schedule(Seconds(5), [this](TaskContext context)
     {
         DoCastAOE(SPELL_MAGMA_CONDUIT);
         if (Is25ManRaid())
             DoCastAOE(SPELL_MAGMA_CONDUIT);
         context.Repeat(Seconds(25));
     });
     scheduler.Schedule(Milliseconds(12800), [this](TaskContext context)
     {
         DoCastAOE(SPELL_EARTHQUAKE);
         context.Repeat(Milliseconds(32500));
     });
 }
开发者ID:Lyill,项目名称:TrinityCore,代码行数:15,代码来源:firelands.cpp


示例11: Korthik_ExtremistAI

		Korthik_ExtremistAI(Creature* creature) : ScriptedAI(creature)
		{
			if (Is25ManRaid())
			{
				me->SetMaxHealth(3301009);
				me->SetHealth(3301009);
			}
			else
			{
				me->SetMaxHealth(1222596);
				me->SetHealth(1222596);
			}
			me->SetLevel(91);
			me->setFaction(16);
		}
开发者ID:Exodius,项目名称:JadeCore548,代码行数:15,代码来源:heart_of_fear.cpp


示例12: coagulated_oozeAI

		coagulated_oozeAI(Creature* creature) : ScriptedAI(creature)
		{
			if (Is25ManRaid())
			{
				me->SetMaxHealth(1181823);
				me->SetHealth(1181823);
			}
			else
			{
				me->SetMaxHealth(3794328);
				me->SetHealth(3794328);
			}
			me->SetLevel(92);
			me->setFaction(16);
		}
开发者ID:Exodius,项目名称:JadeCore548,代码行数:15,代码来源:heart_of_fear.cpp


示例13: Reset

 void Reset() override
 {
     _Reset();
     events.ScheduleEvent(EVENT_BERSERK, 330000);
     events.ScheduleEvent(EVENT_VAMPIRIC_BITE, 15000);
     events.ScheduleEvent(EVENT_BLOOD_MIRROR, 2500, EVENT_GROUP_CANCELLABLE);
     events.ScheduleEvent(EVENT_DELIRIOUS_SLASH, urand(20000, 24000), EVENT_GROUP_NORMAL);
     events.ScheduleEvent(EVENT_PACT_OF_THE_DARKFALLEN, 15000, EVENT_GROUP_NORMAL);
     events.ScheduleEvent(EVENT_SWARMING_SHADOWS, 30500, EVENT_GROUP_NORMAL);
     events.ScheduleEvent(EVENT_TWILIGHT_BLOODBOLT, urand(20000, 25000), EVENT_GROUP_NORMAL);
     events.ScheduleEvent(EVENT_AIR_PHASE, 124000 + uint32(Is25ManRaid() ? 3000 : 0));
     CleanAuras();
     _vampires.clear();
     Initialize();
 }
开发者ID:mynew,项目名称:Core,代码行数:15,代码来源:boss_blood_queen_lana_thel.cpp


示例14: amber_riddenAI

		amber_riddenAI(Creature* creature) : ScriptedAI(creature)
		{
			if (Is25ManRaid())
			{
				me->SetMaxHealth(22765968);
				me->SetHealth(22765968);
			}
			else
			{
				me->SetMaxHealth(8431840);
				me->SetHealth(8431840);
			}
			me->SetLevel(92);
			me->setFaction(16);
		}
开发者ID:Exodius,项目名称:JadeCore548,代码行数:15,代码来源:heart_of_fear.cpp


示例15: searstring_AI

		searstring_AI(Creature* creature) : ScriptedAI(creature)
		{
			if (Is25ManRaid())
			{
				me->SetMaxHealth(45531936);
				me->SetHealth(45531936);
			}
			else
			{
				me->SetMaxHealth(16863680);
				me->SetHealth(16863680);
			}
			me->SetLevel(92);
			me->setFaction(16);
		}
开发者ID:Exodius,项目名称:JadeCore548,代码行数:15,代码来源:heart_of_fear.cpp


示例16: korthik_fleshrenderAI

		korthik_fleshrenderAI(Creature* creature) : ScriptedAI(creature)
		{
			if (Is25ManRaid())
			{
				me->SetMaxHealth(28457460);
				me->SetHealth(28457460);
			}
			else
			{
				me->SetMaxHealth(10539800);
				me->SetHealth(10539800);
			}
			me->SetLevel(92);
			me->setFaction(16);
		}
开发者ID:Exodius,项目名称:JadeCore548,代码行数:15,代码来源:heart_of_fear.cpp


示例17: pool_tenderAI

		pool_tenderAI(Creature* creature) : ScriptedAI(creature)
		{
			if (Is25ManRaid())
			{
				me->SetMaxHealth(12647760);
				me->SetHealth(12647760);
			}
			else
			{
				me->SetMaxHealth(4215920);
				me->SetHealth(4215920);
			}
			me->SetLevel(92);
			me->setFaction(16);
		}
开发者ID:Exodius,项目名称:JadeCore548,代码行数:15,代码来源:heart_of_fear.cpp


示例18: Zephyr_CasterAI

		Zephyr_CasterAI(Creature* creature) : ScriptedAI(creature)
		{
			if (Is25ManRaid())
			{
				me->SetMaxHealth(17074476);
				me->SetHealth(17074476);
			}
			else
			{
				me->SetMaxHealth(6323880);
				me->SetHealth(6323880);
			}
			me->SetLevel(91);
			me->setFaction(16);
		}
开发者ID:Exodius,项目名称:JadeCore548,代码行数:15,代码来源:heart_of_fear.cpp


示例19: korthik_swarmguardAI

		korthik_swarmguardAI(Creature* creature) : ScriptedAI(creature)
		{
			if (Is25ManRaid())
			{
				me->SetMaxHealth(18971640);
				me->SetHealth(18971640);
			}
			else
			{
				me->SetMaxHealth(6323880);
				me->SetHealth(6323880);
			}
			me->SetLevel(92);
			me->setFaction(16);
		}
开发者ID:Exodius,项目名称:JadeCore548,代码行数:15,代码来源:heart_of_fear.cpp


示例20: SetThik_SwiftBladeAI

		SetThik_SwiftBladeAI(Creature* creature) : ScriptedAI(creature)
		{
			if (Is25ManRaid())
			{
				me->SetMaxHealth(9485820);
				me->SetHealth(9485820);
			}
			else
			{
				me->SetMaxHealth(4215920);
				me->SetHealth(4215920);
			}
			me->setFaction(16);
			me->SetLevel(92);
		}
开发者ID:Exodius,项目名称:JadeCore548,代码行数:15,代码来源:heart_of_fear.cpp



注:本文中的Is25ManRaid函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ IsA函数代码示例发布时间:2022-05-30
下一篇:
C++ IoTag_state_函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap