当前位置: 首页>>代码示例>>C++>>正文


C++ AddSpell函数代码示例

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


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

示例1: AIUpdate

	void AIUpdate()
	{
		if ((HandOfTheDeceiver1 && HandOfTheDeceiver2 && HandOfTheDeceiver3 && HandOfTheDeceiver4) && (HandOfTheDeceiver1->isDead() || HandOfTheDeceiver2->isDead() || HandOfTheDeceiver3->isDead() || HandOfTheDeceiver4->isDead()) && (GetPhase() != 1))
		{
			RemoveAura(46410);
		}

		if ((HandOfTheDeceiver1 && HandOfTheDeceiver2 && HandOfTheDeceiver3 && HandOfTheDeceiver4) && (HandOfTheDeceiver1->isDead() && HandOfTheDeceiver2->isDead() && HandOfTheDeceiver3->isDead() && HandOfTheDeceiver4->isDead()) && (GetPhase() != 1) && (GetPhase() != 2))
		{
			SetPhase(1);
			_unit->SetUInt64Value(UNIT_FIELD_FLAGS, ( true ) ? 0 : UNIT_FLAG_NOT_ATTACKABLE_9);
			_unit->GetAIInterface()->SetAllowedToEnterCombat(true);
			RemoveAura(46367);
			ShieldOrb1 = _unit->GetMapMgr()->GetInterface()->SpawnGameObject(CN_SHIELD_ORB, 1678.00f, 610.00f, 28.00f, 0.00f, false, 0, 0);
		}

		if (ShieldOrb1)
		{
			//ShieldOrb1->CastSpell(ShShadowbolt);
		}
		if (ShieldOrb2)
		{
			//ShieldOrb2->CastSpell(ShShadowbolt);
		}
		if (ShieldOrb3)
		{
			//ShieldOrb3->CastSpell(ShShadowbolt);
		}
		if (ShieldOrb4)
		{
			//ShieldOrb4->CastSpell(ShShadowbolt);
		}

		switch (dtimmer)
		{
		case 100:
			{
				dtimmer++;
				if (GetHealthPercent()<=85)
				{
					SetPhase(2);
					SetAllowMelee(false);
					SetCanMove(false);
					_unit->SendChatMessage(CHAT_MSG_MONSTER_YELL, LANG_UNIVERSAL, "Kil'jaeden begins to channel dark energy");
				}
			}break;
		case 120:
			{
				dtimmer++;
				if (GetPhase() == 2)
					CastSpellOnTarget(_unit, Target_RandomPlayer, Darkness_explosion, true);
					//CastSpellOnTarget(_unit, Target_RandomPlayer, Darkness, true); //this is the correct, but the dragon doesn't work.
				SetAllowMelee(false);
				SetCanMove(false);
			}break;
		case 128:
			{
				SetPhase(1);
				SetAllowMelee(false);
				SetCanMove(false);
				dtimmer = 1;
			}break;
		default:
			{
				SetCanMove(false);
				SetAllowMelee(false);
				dtimmer++;
			}break;
		}

		switch(GetPhase())
		{
		case 1:
			{
				if(GetHealthPercent()<=85)
				{
					AddPhaseSpell(1, AddSpell(SINISTER_REFLECTION, Target_RandomPlayer, 10, 1.5f, 4, 0, 35));
					AddPhaseSpell(1, AddSpell(SHADOW_SPIKE, Target_RandomDestination, 10, 2.0f, 6, 0, 35));
					AddPhaseSpell(1, AddSpell(FLAME_DART_EXPLOSION, Target_RandomPlayer, 10, 1.3f, 4, 0, 35));
					ShieldOrb1 = _unit->GetMapMgr()->GetInterface()->SpawnGameObject(CN_SHIELD_ORB, 1678.00f, 610.00f, 28.00f, -1.72788f, false, 0, 0);
				}

				if(GetHealthPercent()<=55)
				{
					ShieldOrb1 = _unit->GetMapMgr()->GetInterface()->SpawnGameObject(CN_SHIELD_ORB, 1684.00f, 651.00f, 28.00f, 0.00f, false, 0, 0);
				}

				if(GetHealthPercent()<=25)
				{
					//Armageddon
					ShieldOrb1 = _unit->GetMapMgr()->GetInterface()->SpawnGameObject(CN_SHIELD_ORB, 1720.00f, 642.00f, 28.00f, 0.00f, false, 0, 0);
					AddPhaseSpell(1, AddSpell(SACRIFICE_OF_ANVEENA, Target_RandomPlayer, 50, 0.5f, 10, 0, 35));
				}
			}break;
		}
		ParentClass::AIUpdate();
	}
开发者ID:Bootz,项目名称:arcticdev,代码行数:97,代码来源:Raid_SunwellPlateau.cpp

示例2: Eramas_BrightblazeAI

		Eramas_BrightblazeAI(Creature* pCreature) : MoonScriptBossAI(pCreature)
		{
			AddSpell(ERAMAS_BRIGHTBLAZE_KNOCKDOWN, Target_Current, 25, 0, 5, 0, 5);
			AddSpell(ERAMAS_BRIGHTBLAZE_SNAP_KICK, Target_SecondMostHated, 40, 0, 2, 0, 5);
		}
开发者ID:Asandru,项目名称:Script-Land,代码行数:5,代码来源:Instance_MagistersTerrace.cpp

示例3: ZelfanAI

		ZelfanAI(Creature* pCreature) : MoonScriptCreatureAI(pCreature)
		{
			AddSpell(ZELFAN_GOBLIN_DRAGON_GUN, Target_Current, 90, 0, 15, 0, 5);
			AddSpell(ZELFAN_HIGH_EXPLOSIV_SHEEP, Target_Self, 90, 2, 80);
			AddSpell(ZELFAN_ROCKET_LAUNCH, Target_RandomPlayer, 99, 3.5, 60, 0, 45);
		}
开发者ID:Asandru,项目名称:Script-Land,代码行数:6,代码来源:Instance_MagistersTerrace.cpp

示例4: GarrAI

	GarrAI(Creature* pCreature) : MoonScriptBossAI(pCreature)
	{
		AddSpell(GARR_ANTIMAGIC_PULSE, Target_Self, 15, 0, 0);
		AddSpell(GARR_MAGMA_SHACKLES, Target_Self, 15, 0, 0);
	}
开发者ID:Tulba,项目名称:wowtbc,代码行数:5,代码来源:Raid_MoltenCore.cpp

示例5: CoreRagerAI

    CoreRagerAI(Creature* pCreature) : MoonScriptCreatureAI(pCreature)
    {
		Golemagg = NULL;

		AddSpell(CORERAGER_MANGLE, Target_Current, 20, 0, 20);
    }
开发者ID:Tulba,项目名称:wowtbc,代码行数:6,代码来源:Raid_MoltenCore.cpp

示例6: LorgusJettAI

    LorgusJettAI(Creature* pCreature) : MoonScriptCreatureAI(pCreature) 
	{
		// Lightning Bolt
		AddSpell(12167, Target_Current, 20, 3, 0);
	}
开发者ID:miklasiak,项目名称:projekt,代码行数:5,代码来源:Instance_BlackfathomDeeps.cpp

示例7: FlamewakerAI

	FlamewakerAI(Creature* pCreature) : MoonScriptCreatureAI(pCreature)
	{
		AddSpell(FLAMEWAKER_SUNDER_ARMOR, Target_Current, 8, 0, 0);
		AddSpell(FLAMEWAKER_FISTOFRAG, Target_Self, 8, 0, 0);
		AddSpell(FLAMEWAKER_STRIKE, Target_Current, 14, 0, 0);
	}
开发者ID:Tulba,项目名称:wowtbc,代码行数:6,代码来源:Raid_MoltenCore.cpp

示例8: SunbladeImpAI

	SunbladeImpAI(Creature* pCreature) : ArcTicScriptBossAI(pCreature)
	{
		AddSpell(IMP_FIREBOLT, Target_Current, 100, 2, (int32)2.5, 0, 30);
	}
开发者ID:Bootz,项目名称:arcticdev,代码行数:4,代码来源:Instance_MagistersTerrace.cpp

示例9: SunbladeMageGuardAI

	SunbladeMageGuardAI(Creature* pCreature) : ArcTicScriptBossAI(pCreature)
	{
		AddSpell(MAGE_GUARD_GLAVE_THROW, Target_Current, 60, 0, 25, 0, 5);
		AddSpell(MAGE_GUARD_MAGIC_DAMPENING_FIELD, Target_RandomPlayer, 20, 1, 35, 0, 20);
	}
开发者ID:Bootz,项目名称:arcticdev,代码行数:5,代码来源:Instance_MagistersTerrace.cpp

示例10: VoidWalkerAI

	VoidWalkerAI(CreaturePointer pCreature) : MoonScriptCreatureAI(pCreature)
	{
		AddSpell(7154, Target_WoundedFriendly, 5, 0, 7);
	}
开发者ID:Vanj-crew,项目名称:HearthStone-Emu,代码行数:4,代码来源:Instance_ShadowfangKeep.cpp

示例11: SunbladeBloodKnightAI

	SunbladeBloodKnightAI(Creature* pCreature) : ArcTicScriptBossAI(pCreature)
	{
		AddSpell(BLOOD_KNIGHT_JUDGEMENT_OF_WRATH, Target_Current, 20, 0, 30, 0, 5);
		AddSpell(BLOOD_KNIGHT_SEAL_OF_WRATH, Target_Self, 99, 0, 30, 0, 0);
		AddSpell(BLOOD_KNIGHT_HOLY_LIGHT, Target_Self, 10, 2, 30, 0, 40);		
	}
开发者ID:Bootz,项目名称:arcticdev,代码行数:6,代码来源:Instance_MagistersTerrace.cpp

示例12: FenrusAI

	FenrusAI(CreaturePointer pCreature) : MoonScriptCreatureAI(pCreature)
	{
		AddSpell(7125, Target_Current, 12, 1.5f, 60);
	}
开发者ID:Vanj-crew,项目名称:HearthStone-Emu,代码行数:4,代码来源:Instance_ShadowfangKeep.cpp

示例13: ShadowswordCommanderAI

	ShadowswordCommanderAI(Creature* pCreature) : MoonScriptCreatureAI(pCreature)
	{
		AddSpell(SHADOWSWORD_COMMANDER_SHIELD_SLAM, Target_Current, 10, 0, 10);
		AddSpell(SHADOWSWORD_COMMANDER_BATTLESHOUT, Target_Self, 20, 0, 25);
	}
开发者ID:Desch,项目名称:Edge-of-Chaos,代码行数:5,代码来源:Raid_SunwellPlateau.cpp

示例14: SunbladeProtectorAI

	SunbladeProtectorAI(Creature* pCreature) : MoonScriptCreatureAI(pCreature)
	{
		AddSpell(SUNBLADE_PROTECTOR_FEL_LIGHTNING, Target_RandomPlayer, 100, 0, 15, 0, 60);
	}
开发者ID:Desch,项目名称:Edge-of-Chaos,代码行数:4,代码来源:Raid_SunwellPlateau.cpp

示例15: GhamooraAI

    GhamooraAI(Creature* pCreature) : MoonScriptCreatureAI(pCreature) 
	{
		// Trample
		AddSpell(5568, Target_Self, 12, 0, 0);
	}
开发者ID:miklasiak,项目名称:projekt,代码行数:5,代码来源:Instance_BlackfathomDeeps.cpp


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