这篇教程C++ IsEffectInSpell函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中IsEffectInSpell函数的典型用法代码示例。如果您正苦于以下问题:C++ IsEffectInSpell函数的具体用法?C++ IsEffectInSpell怎么用?C++ IsEffectInSpell使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了IsEffectInSpell函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: IsBeneficialSpellbool IsBeneficialSpell(uint16 spell_id){ if(!IsValidSpell(spell_id)) return false; if(spells[spell_id].goodEffect == 1){ SpellTargetType tt = spells[spell_id].targettype; if(tt != ST_Self && tt != ST_Pet){ if(IsEffectInSpell(spell_id, SE_CancelMagic)) return false; } if(tt == ST_Target || tt == ST_AETarget || tt == ST_Animal || tt == ST_Undead || tt == ST_Pet) { uint16 sai = spells[spell_id].SpellAffectIndex; if(spells[spell_id].resisttype == RESIST_MAGIC){ if(sai == SAI_Calm || sai == SAI_Dispell_Sight || sai == SAI_Memory_Blur || sai == SAI_Calm_Song) return false; }else{ // Bind Sight and Cast Sight if(sai == SAI_Dispell_Sight && spells[spell_id].skill == 18 && !IsEffectInSpell(spell_id, SE_VoiceGraft)) return false; } } } return spells[spell_id].goodEffect != 0 || IsGroupSpell(spell_id);}
开发者ID:Lord-Ptolemy,项目名称:projecteqemu,代码行数:25,
示例2: IsSummonPetSpellbool IsSummonPetSpell(uint16 spell_id){ return ( IsEffectInSpell(spell_id, SE_SummonPet) || IsEffectInSpell(spell_id, SE_SummonBSTPet) );}
开发者ID:Lord-Ptolemy,项目名称:projecteqemu,代码行数:8,
示例3: IsMaloSpellbool IsMaloSpell(int16 spell_id) { if (IsDetrimentalSpell(spell_id) && IsEffectInSpell(spell_id, SE_ResistFire) && IsEffectInSpell(spell_id, SE_ResistCold) && IsEffectInSpell(spell_id, SE_ResistPoison) && IsEffectInSpell(spell_id, SE_ResistMagic)){ return true; } else { return false; }}
开发者ID:Xackery,项目名称:provztz,代码行数:8,
示例4: IsSummonPetSpellbool IsSummonPetSpell(uint16 spell_id){ if (IsEffectInSpell(spell_id, SE_SummonPet) || IsEffectInSpell(spell_id, SE_SummonBSTPet)) return true; return false;}
开发者ID:gforce215,项目名称:Server,代码行数:8,
示例5: IsLDoNObjectSpellbool IsLDoNObjectSpell(uint16 spell_id){ if (IsEffectInSpell(spell_id, SE_AppraiseLDonChest) || IsEffectInSpell(spell_id, SE_DisarmLDoNTrap) || IsEffectInSpell(spell_id, SE_UnlockLDoNChest)) return true; return false;}
开发者ID:gforce215,项目名称:Server,代码行数:9,
示例6: IsSelfConversionSpellbool IsSelfConversionSpell(uint16 spell_id){ if (GetSpellTargetType(spell_id) == ST_Self && IsEffectInSpell(spell_id, SE_CurrentMana) && IsEffectInSpell(spell_id, SE_CurrentHP) && spells[spell_id].base[GetSpellEffectIndex(spell_id, SE_CurrentMana)] > 0 && spells[spell_id].base[GetSpellEffectIndex(spell_id, SE_CurrentHP)] < 0) return true; else return false;}
开发者ID:gforce215,项目名称:Server,代码行数:9,
示例7: IsDebuffSpellbool IsDebuffSpell(uint16 spell_id) { if(IsBeneficialSpell(spell_id) || IsEffectHitpointsSpell(spell_id) || IsStunSpell(spell_id) || IsMezSpell(spell_id) || IsCharmSpell(spell_id) || IsSlowSpell(spell_id) || IsEffectInSpell(spell_id, SE_Root) || IsEffectInSpell(spell_id, SE_CancelMagic) || IsEffectInSpell(spell_id, SE_MovementSpeed) || IsFearSpell(spell_id) || IsEffectInSpell(spell_id, SE_Calm)) return false; else return true;}
开发者ID:Lord-Ptolemy,项目名称:projecteqemu,代码行数:9,
示例8: IsResistDebuffSpellbool IsResistDebuffSpell(uint16 spell_id) { if((IsEffectInSpell(spell_id, SE_ResistFire) || IsEffectInSpell(spell_id, SE_ResistCold) || IsEffectInSpell(spell_id, SE_ResistPoison) || IsEffectInSpell(spell_id, SE_ResistDisease) || IsEffectInSpell(spell_id, SE_ResistMagic) || IsEffectInSpell(spell_id, SE_ResistAll) || IsEffectInSpell(spell_id, SE_ResistCorruption)) && !IsBeneficialSpell(spell_id)) return true; else return false;}
开发者ID:Lord-Ptolemy,项目名称:projecteqemu,代码行数:9,
示例9: IsPartialCapableSpellbool IsPartialCapableSpell(uint16 spell_id){ if(IsPureNukeSpell(spell_id) || IsFearSpell(spell_id) || IsEffectInSpell(spell_id, SE_Root) || IsEffectInSpell(spell_id, SE_Charm)) { return true; } return false;}
开发者ID:Lord-Ptolemy,项目名称:projecteqemu,代码行数:12,
示例10: IsSuccorSpellbool IsSuccorSpell(uint16 spell_id){ if (IsEffectInSpell(spell_id, SE_Succor)) return true; return false;}
开发者ID:gforce215,项目名称:Server,代码行数:7,
示例11: IsHealOverTimeSpellbool IsHealOverTimeSpell(uint16 spell_id){ if (IsEffectInSpell(spell_id, SE_HealOverTime) && !IsGroupSpell(spell_id)) return true; return false;}
开发者ID:gforce215,项目名称:Server,代码行数:7,
示例12: IsPlayerIllusionSpell// seveian 2008-09-23bool IsPlayerIllusionSpell(uint16 spell_id) { if(IsEffectInSpell(spell_id, SE_Illusion) && spells[spell_id].targettype == ST_Self) return true; else return false;}
开发者ID:Lord-Ptolemy,项目名称:projecteqemu,代码行数:8,
示例13: IsGateSpellbool IsGateSpell(uint16 spell_id){ if (IsEffectInSpell(spell_id, SE_Gate)) return true; return false;}
开发者ID:gforce215,项目名称:Server,代码行数:7,
示例14: IsCompleteHealSpellbool IsCompleteHealSpell(uint16 spell_id) { if(spell_id == 13 || IsEffectInSpell(spell_id, SE_CompleteHeal) || IsPercentalHealSpell(spell_id) && !IsGroupSpell(spell_id)) return true; else return false;}
开发者ID:Lord-Ptolemy,项目名称:projecteqemu,代码行数:7,
示例15: IsShadowStepSpellbool IsShadowStepSpell(uint16 spell_id){ if (IsEffectInSpell(spell_id, SE_ShadowStep)) return true; return false;}
开发者ID:gforce215,项目名称:Server,代码行数:7,
示例16: IsTeleportSpellbool IsTeleportSpell(uint16 spell_id){ if (IsEffectInSpell(spell_id, SE_Teleport)) return true; return false;}
开发者ID:gforce215,项目名称:Server,代码行数:7,
示例17: IsDeathSaveSpellbool IsDeathSaveSpell(uint16 spell_id){ if (IsEffectInSpell(spell_id, SE_DeathSave)) return true; return false;}
开发者ID:gforce215,项目名称:Server,代码行数:7,
示例18: IsAllianceSpellLinebool IsAllianceSpellLine(uint16 spell_id){ if (IsEffectInSpell(spell_id, SE_AddFaction)) return true; return false;}
开发者ID:gforce215,项目名称:Server,代码行数:7,
示例19: IsAllianceSpellLinebool IsAllianceSpellLine(uint16 spell_id) { bool Result = false; if(IsValidSpell(spell_id)) Result = IsEffectInSpell(spell_id, SE_AddFaction); return Result;}
开发者ID:Lord-Ptolemy,项目名称:projecteqemu,代码行数:8,
示例20: IsDispellSpellbool IsDispellSpell(int16 spell_id) { if (IsEffectInSpell(spell_id, SE_CancelMagic)){ return true; } else { return false; }}
开发者ID:Xackery,项目名称:provztz,代码行数:8,
示例21: IsSuccorSpellbool IsSuccorSpell(int16 spell_id) { if (IsEffectInSpell(spell_id, SE_Succor)){ return true; } else { return false; }}
开发者ID:Xackery,项目名称:provztz,代码行数:8,
示例22: IsTeleportSpellbool IsTeleportSpell(int16 spell_id) { if (IsEffectInSpell(spell_id, SE_Teleport)){ return true; } else { return false; }}
开发者ID:Xackery,项目名称:provztz,代码行数:8,
示例23: IsSnareSpellbool IsSnareSpell(int16 spell_id) { if (IsDetrimentalSpell(spell_id) && IsEffectInSpell(spell_id, SE_MovementSpeed)){ return true; } else { return false; }}
开发者ID:Xackery,项目名称:provztz,代码行数:8,
示例24: IsDeathSaveSpellbool IsDeathSaveSpell(uint16 spell_id) { bool Result = false; if(IsValidSpell(spell_id)) Result = IsEffectInSpell(spell_id, SE_DeathSave); return Result;}
开发者ID:Lord-Ptolemy,项目名称:projecteqemu,代码行数:8,
示例25: IsGateSpellbool IsGateSpell(int16 spell_id) { if (IsEffectInSpell(spell_id, SE_Gate)){ return true; } else { return false; }}
开发者ID:Xackery,项目名称:provztz,代码行数:8,
示例26: IsRootSpellbool IsRootSpell(int16 spell_id) { if (IsEffectInSpell(spell_id, SE_Root)){ return true; } else { return false; }}
开发者ID:Xackery,项目名称:provztz,代码行数:8,
示例27: IsPoisonSpellbool IsPoisonSpell(int16 spell_id) { if (IsDetrimentalSpell(spell_id) && IsEffectInSpell(spell_id, SE_PoisonCounter)){ return true; } else { return false; }}
开发者ID:Xackery,项目名称:provztz,代码行数:8,
示例28: IsTGBCompatibleSpell// checks if this spell can be targetedbool IsTGBCompatibleSpell(uint16 spell_id){ if (IsValidSpell(spell_id) && (!IsDetrimentalSpell(spell_id) && spells[spell_id].buffduration != 0 && !IsBardSong(spell_id) && !IsEffectInSpell(spell_id, SE_Illusion))) return true; return false;}
开发者ID:gforce215,项目名称:Server,代码行数:10,
示例29: IsBeneficialSpellbool IsBeneficialSpell(uint16 spell_id){ if (!IsValidSpell(spell_id)) return false; // You'd think just checking goodEffect flag would be enough? if (spells[spell_id].goodEffect == 1) { // If the target type is ST_Self or ST_Pet and is a SE_CancleMagic spell // it is not Beneficial SpellTargetType tt = spells[spell_id].targettype; if (tt != ST_Self && tt != ST_Pet && IsEffectInSpell(spell_id, SE_CancelMagic)) return false; // When our targettype is ST_Target, ST_AETarget, ST_Aniaml, ST_Undead, or ST_Pet // We need to check more things! if (tt == ST_Target || tt == ST_AETarget || tt == ST_Animal || tt == ST_Undead || tt == ST_Pet) { uint16 sai = spells[spell_id].SpellAffectIndex; // If the resisttype is magic and SpellAffectIndex is Calm/memblur/dispell sight // it's not beneficial if (spells[spell_id].resisttype == RESIST_MAGIC) { if (sai == SAI_Calm || sai == SAI_Dispell_Sight || sai == SAI_Memory_Blur || sai == SAI_Calm_Song) return false; } else { // If the resisttype is not magic and spell is Bind Sight or Cast Sight // It's not beneficial if (sai == SAI_Dispell_Sight && spells[spell_id].skill == 18 && !IsEffectInSpell(spell_id, SE_VoiceGraft)) return false; } } } // And finally, if goodEffect is not 0 or if it's a group spell it's beneficial return spells[spell_id].goodEffect != 0 || IsGroupSpell(spell_id);}
开发者ID:gforce215,项目名称:Server,代码行数:39,
示例30: IsPureNukeSpellbool IsPureNukeSpell(uint16 spell_id){ int i, effect_count = 0; if (!IsValidSpell(spell_id)) return false; for (i = 0; i < EFFECT_COUNT; i++) if (!IsBlankSpellEffect(spell_id, i)) effect_count++; if (effect_count == 1 && IsEffectInSpell(spell_id, SE_CurrentHP) && spells[spell_id].buffduration == 0 && IsDamageSpell(spell_id)) return true; return false;}
开发者ID:gforce215,项目名称:Server,代码行数:17,
注:本文中的IsEffectInSpell函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ IsEmpty函数代码示例 C++ IsEffectActive函数代码示例 |