mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Remove trailing whitespace
This commit is contained in:
+25
-25
@@ -20,7 +20,7 @@ Copyright (C) 2001-2002 EQEMu Development Team (http://eqemu.org)
|
||||
/*
|
||||
|
||||
solar: General outline of spell casting process
|
||||
|
||||
|
||||
1.
|
||||
a) Client clicks a spell bar gem, ability, or item. client_process.cpp
|
||||
gets the op and calls CastSpell() with all the relevant info including
|
||||
@@ -215,7 +215,7 @@ bool IsBeneficialSpell(uint16 spell_id)
|
||||
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){
|
||||
@@ -347,7 +347,7 @@ bool IsPureNukeSpell(uint16 spell_id)
|
||||
|
||||
return
|
||||
(
|
||||
effect_count == 1 && IsEffectInSpell(spell_id, SE_CurrentHP) &&
|
||||
effect_count == 1 && IsEffectInSpell(spell_id, SE_CurrentHP) &&
|
||||
spells[spell_id].buffduration == 0 && IsDamageSpell(spell_id)
|
||||
);
|
||||
}
|
||||
@@ -364,15 +364,15 @@ bool IsPBAENukeSpell(uint16 spell_id)
|
||||
|
||||
bool IsAERainNukeSpell(uint16 spell_id)
|
||||
{
|
||||
return IsValidSpell(spell_id) && IsPureNukeSpell(spell_id)
|
||||
return IsValidSpell(spell_id) && IsPureNukeSpell(spell_id)
|
||||
&& spells[spell_id].aoerange > 0 && spells[spell_id].AEDuration > 1000;
|
||||
}
|
||||
|
||||
bool IsPartialCapableSpell(uint16 spell_id)
|
||||
{
|
||||
if(IsPureNukeSpell(spell_id) ||
|
||||
IsFearSpell(spell_id) ||
|
||||
IsEffectInSpell(spell_id, SE_Root) ||
|
||||
if(IsPureNukeSpell(spell_id) ||
|
||||
IsFearSpell(spell_id) ||
|
||||
IsEffectInSpell(spell_id, SE_Root) ||
|
||||
IsEffectInSpell(spell_id, SE_Charm))
|
||||
{
|
||||
return true;
|
||||
@@ -401,7 +401,7 @@ bool IsGroupSpell(uint16 spell_id)
|
||||
IsValidSpell(spell_id) &&
|
||||
(
|
||||
spells[spell_id].targettype == ST_AEBard ||
|
||||
spells[spell_id].targettype == ST_Group ||
|
||||
spells[spell_id].targettype == ST_Group ||
|
||||
spells[spell_id].targettype == ST_GroupTeleport
|
||||
)
|
||||
);
|
||||
@@ -439,7 +439,7 @@ bool IsEffectInSpell(uint16 spellid, int effect)
|
||||
return false;
|
||||
|
||||
for(j = 0; j < EFFECT_COUNT; j++)
|
||||
if(spells[spellid].effectid[j] == effect)
|
||||
if(spells[spellid].effectid[j] == effect)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
@@ -460,7 +460,7 @@ bool IsBlankSpellEffect(uint16 spellid, int effect_index)
|
||||
(
|
||||
effect == SE_Blank || // blank marker
|
||||
( // spacer
|
||||
effect == SE_CHA &&
|
||||
effect == SE_CHA &&
|
||||
base == 0 &&
|
||||
formula == 100
|
||||
)
|
||||
@@ -493,7 +493,7 @@ int GetMinLevel(uint16 spell_id) {
|
||||
if(spell.classes[r] < min)
|
||||
min = spell.classes[r];
|
||||
}
|
||||
|
||||
|
||||
//if we can't cast the spell return 0
|
||||
//just so it wont screw up calculations used in other areas of the code
|
||||
if(min == 255)
|
||||
@@ -536,7 +536,7 @@ int GetSpellEffectIndex(uint16 spell_id, int effect)
|
||||
int CanUseSpell(uint16 spellid, int classa, int level)
|
||||
{
|
||||
int level_to_use;
|
||||
|
||||
|
||||
if(!IsValidSpell(spellid) || classa >= PLAYER_CLASS_COUNT)
|
||||
return 0;
|
||||
|
||||
@@ -557,7 +557,7 @@ int CanUseSpell(uint16 spellid, int classa, int level)
|
||||
|
||||
bool BeneficialSpell(uint16 spell_id)
|
||||
{
|
||||
if (spell_id <= 0 || spell_id >= SPDAT_RECORDS
|
||||
if (spell_id <= 0 || spell_id >= SPDAT_RECORDS
|
||||
/*|| spells[spell_id].stacking == 27*/ )
|
||||
{
|
||||
return true;
|
||||
@@ -668,9 +668,9 @@ bool IsDisciplineBuff(uint16 spell_id)
|
||||
if(!IsValidSpell(spell_id))
|
||||
return false;
|
||||
|
||||
if(spells[spell_id].mana == 0
|
||||
if(spells[spell_id].mana == 0
|
||||
&& spells[spell_id].short_buff_box == 0
|
||||
&& (spells[spell_id].EndurCost || spells[spell_id].EndurUpkeep)
|
||||
&& (spells[spell_id].EndurCost || spells[spell_id].EndurUpkeep)
|
||||
&& spells[spell_id].targettype == ST_Self)
|
||||
{
|
||||
return true;
|
||||
@@ -836,7 +836,7 @@ int GetSpellEffectDescNum(uint16 spell_id)
|
||||
}
|
||||
}
|
||||
|
||||
DmgShieldType GetDamageShieldType(uint16 spell_id)
|
||||
DmgShieldType GetDamageShieldType(uint16 spell_id)
|
||||
{
|
||||
|
||||
// If we have a DamageShieldType for this spell from the damageshieldtypes table, return that,
|
||||
@@ -844,8 +844,8 @@ DmgShieldType GetDamageShieldType(uint16 spell_id)
|
||||
//
|
||||
if( (spell_id > 0) && (spell_id < SPDAT_RECORDS) ){
|
||||
|
||||
_log(SPELLS__EFFECT_VALUES, "DamageShieldType for spell %i (%s) is %X\n", spell_id,
|
||||
spells[spell_id].name, spells[spell_id].DamageShieldType);
|
||||
_log(SPELLS__EFFECT_VALUES, "DamageShieldType for spell %i (%s) is %X\n", spell_id,
|
||||
spells[spell_id].name, spells[spell_id].DamageShieldType);
|
||||
|
||||
if(spells[spell_id].DamageShieldType)
|
||||
return (DmgShieldType) spells[spell_id].DamageShieldType;
|
||||
@@ -865,10 +865,10 @@ DmgShieldType GetDamageShieldType(uint16 spell_id)
|
||||
return DS_THORNS;
|
||||
}
|
||||
|
||||
bool IsLDoNObjectSpell(uint16 spell_id)
|
||||
bool IsLDoNObjectSpell(uint16 spell_id)
|
||||
{
|
||||
if(IsEffectInSpell(spell_id, SE_AppraiseLDonChest) ||
|
||||
IsEffectInSpell(spell_id, SE_DisarmLDoNTrap) ||
|
||||
if(IsEffectInSpell(spell_id, SE_AppraiseLDonChest) ||
|
||||
IsEffectInSpell(spell_id, SE_DisarmLDoNTrap) ||
|
||||
IsEffectInSpell(spell_id, SE_UnlockLDoNChest))
|
||||
{
|
||||
return true;
|
||||
@@ -898,7 +898,7 @@ bool IsHealOverTimeSpell(uint16 spell_id) {
|
||||
}
|
||||
|
||||
bool IsCompleteHealSpell(uint16 spell_id) {
|
||||
|
||||
|
||||
if(spell_id == 13 || IsEffectInSpell(spell_id, SE_CompleteHeal) || IsPercentalHealSpell(spell_id) && !IsGroupSpell(spell_id))
|
||||
return true;
|
||||
else
|
||||
@@ -960,7 +960,7 @@ bool IsGroupHealOverTimeSpell(uint16 spell_id) {
|
||||
|
||||
bool IsDebuffSpell(uint16 spell_id) {
|
||||
|
||||
if(IsBeneficialSpell(spell_id) || IsEffectHitpointsSpell(spell_id) || IsStunSpell(spell_id) || IsMezSpell(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;
|
||||
@@ -980,14 +980,14 @@ bool IsResistDebuffSpell(uint16 spell_id) {
|
||||
|
||||
bool IsSelfConversionSpell(uint16 spell_id) {
|
||||
|
||||
if(GetSpellTargetType(spell_id) == ST_Self && IsEffectInSpell(spell_id, SE_CurrentMana) && IsEffectInSpell(spell_id, SE_CurrentHP)
|
||||
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;
|
||||
}
|
||||
|
||||
uint32 GetMorphTrigger(uint32 spell_id)
|
||||
uint32 GetMorphTrigger(uint32 spell_id)
|
||||
{
|
||||
for(int i = 0; i < EFFECT_COUNT; ++i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user