View Single Post
  #2  
Old 08-14-2007, 09:52 AM
inkubus
Hill Giant
 
Join Date: Feb 2002
Posts: 146
Default

Eek some changes as i had the line numebrs wrong


Quote:
spdat.h changes:
Line 476 add:
bool IsHarmonySpell(int16 spell_id);

spdat.cpp changes:
Line 202
add:
bool IsHarmonySpell(int16 spell_id)
{
int i;
const SPDat_Spell_Struct &sp = spells[spell_id];

for(i = 0; i < EFFECT_COUNT; i++)
{
if(sp.effectid[i] == SE_Lull || sp.effectid[i] == SE_Harmony)
return true;
}
return false;
}

spells.cpp line 2250
(above if(!(IsClient() && CastToClient()->GetGM())) // GMs can cast on anything)
add:
if (!IsHarmonySpell(spell_id))
{

and closing brace below

attack.cpp line 1577
(In Mob::AddToHateList() below assert(other != NULL)
add:
// If the hate's 0 then why bother?
if (hate == 0)
return;
Reply With Quote