本文整理汇总了C++中Corpse::Summon方法的典型用法代码示例。如果您正苦于以下问题:C++ Corpse::Summon方法的具体用法?C++ Corpse::Summon怎么用?C++ Corpse::Summon使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Corpse
的用法示例。
在下文中一共展示了Corpse::Summon方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SpellEffect
//.........这里部分代码省略.........
case SE_CancelMagic:
{
for(int i = 0; i < 15; i++)
{
//Yeahlight: Buff must exist and the buff may not have any poison or disease counters
if(buffs[i].spell && buffs[i].spell->IsValidSpell() && buffs[i].casterlevel <= (caster_level + base) && buffs[i].spell->GetDiseaseCounters() == 0 && buffs[i].spell->GetPoisonCounters() == 0)
{
this->BuffFadeBySlot(i, true);
break;
}
}
CAST_CLIENT_DEBUG_PTR(caster)->Log(CP_SPELL, "Mob::SpellEffect(spell_name = %s): You casted a cancel magic spell, amount: %i.", spell->GetSpellName(), amount);
break;
}
case SE_InvisVsUndead:
{
this->SetInvisibleUndead(true);
CAST_CLIENT_DEBUG_PTR(caster)->Log(CP_SPELL, "Mob::SpellEffect(spell_name = %s): You casted an Invis VS Undead spell, amount: %i.", spell->GetSpellName(), amount);
break;
}
case SE_InvisVsAnimals:
{
this->SetInvisibleAnimal(true);
CAST_CLIENT_DEBUG_PTR(caster)->Log(CP_SPELL, "Mob::SpellEffect(spell_name = %s): You casted an Invis VS Animal spell, amount: %i.", spell->GetSpellName(), amount);
break;
}
case SE_Mez:
{
// Pinedepain // When a mezz spell is casted, we mesmerize this mob
Mesmerize();
CAST_CLIENT_DEBUG_PTR(caster)->Log(CP_SPELL, "Mob::SpellEffect(spell_name = %s): You casted a mesmerize spell, amount: %i.", spell->GetSpellName(), amount);
break;
}
case SE_SummonItem:
{
if(this->IsClient())
{
if(amount == 0)
this->CastToClient()->SummonItem(base, 1);
else
this->CastToClient()->SummonItem(base, (amount > 20) ? 20 : amount);
}
CAST_CLIENT_DEBUG_PTR(caster)->Log(CP_SPELL, "Mob::SpellEffect(spell_name = %s): You casted a summon item spell: %i.", spell->GetSpellName(), base);
break;
}
case SE_NecPet:
case SE_SummonPet:
{
if (this->GetPetID() != 0) {
Message(RED, "You\'ve already got a pet.");
break;
}
this->MakePet(teleport_zone);
CAST_CLIENT_DEBUG_PTR(caster)->Log(CP_SPELL, "Mob::SpellEffect(spell_name = %s): You casted a Summon pet / nec pet spell, amount: %i.", spell->GetSpellName(), amount);
break;
}
case SE_DivineAura:
{
this->SetInvulnerable(true);
CAST_CLIENT_DEBUG_PTR(caster)->Log(CP_SPELL, "Mob::SpellEffect(spell_name = %s): You casted a Divine Aura, amount: %i.", spell->GetSpellName(), amount);
break;
}
case SE_ShadowStep:
{
//Yeahlight: Handled client side
CAST_CLIENT_DEBUG_PTR(caster)->Log(CP_SPELL, "Mob::SpellEffect(spell_name = %s): You casted a Shadow Step spell, amount: %i.", spell->GetSpellName(), amount);