Advertisement
NatedogServer

Fix maybe?

Sep 16th, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1.     if (spellid1 == spellid2) {
  2.         if (sp1.dot_stacking_exempt == 1 && caster1 != caster2) { // same caster can refresh
  3.             mlog(SPELLS__STACKING, "Blocking spell due to dot stacking exemption.");
  4.             return -1;
  5.         } else if (spellid1 == 2751) {
  6.             mlog(SPELLS__STACKING, "Blocking spell because manaburn does not stack with itself.");
  7.             return -1;
  8.         }
  9.         bool overwrite_complete_match = true;
  10.         for (i = 0; i < EFFECT_COUNT; i++) {
  11.             if (!IsBlankSpellEffect(spellid1, i)) {
  12.                 overwrite_complete_match = false;
  13.                 break;
  14.             }
  15.         }
  16.         if(overwrite_complete_match)
  17.             return 1; //Spell is completely blank and matches in ID so we overwrite!
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement