There's another piece I forgot about, if you want to make the druid 'self only" wolf work;
in spells.cpp around 2431 where you see
Code:
//Franck-add: can't detrimental spell on bots and bots can't detriment on you or the others bots
if ((IsBot() && IsDetrimentalSpell(spell_id) && spelltar->IsBot()) ||
(IsBot() && IsDetrimentalSpell(spell_id) && spelltar->IsClient()) ||
(IsClient() && IsDetrimentalSpell(spell_id) && spelltar->IsBot()))
return false;
I added to look like this;
Code:
//Franck-add: can't detrimental spell on bots and bots can't detriment on you or the others bots
if ((IsBot() && IsDetrimentalSpell(spell_id) && spelltar->IsBot()) ||
(IsBot() && IsDetrimentalSpell(spell_id) && spelltar->IsClient()) ||
(IsClient() && IsDetrimentalSpell(spell_id) && spelltar->IsBot()))
return false;
int druid_sp [] = { 516,517,425,278,4058,4054,169 };
if ((IsBot() && spell_id == druid_sp[3] && level >= 20 && (GetClass() == DRUID) && spelltar == this)||
//(IsBot() && spell_id == druid_sp[3] && !zone->CanCastOutdoor() && spelltar->IsPet()) ||
(IsBot() && spell_id == druid_sp[3] && (spelltar->GetClass() == DRUID)))
return false;
This is so the druid will not be affected by sow from itself anything else.
reason for the big 'int druid_sp'
I have a big mess of code quoted out and re-made since one of Congdar's fixes (wouldn't work anymore) , I need to clean it all up, but keep it for new ideas.