not_reflectable -> reflectable

This commit is contained in:
KayenEQ 2014-02-22 02:23:37 -05:00
parent 44c833fbe6
commit 2a28e88bcf
4 changed files with 6 additions and 4 deletions

View File

@ -1710,7 +1710,7 @@ void SharedDatabase::LoadSpells(void *data, int max_spells) {
sp[tempid].descnum = atoi(row[155]); sp[tempid].descnum = atoi(row[155]);
sp[tempid].effectdescnum = atoi(row[157]); sp[tempid].effectdescnum = atoi(row[157]);
sp[tempid].not_reflectable = atoi(row[161]) != 0; sp[tempid].reflectable = atoi(row[161]) != 0;
sp[tempid].bonushate=atoi(row[162]); sp[tempid].bonushate=atoi(row[162]);
sp[tempid].EndurCost=atoi(row[166]); sp[tempid].EndurCost=atoi(row[166]);

View File

@ -688,7 +688,7 @@ struct SPDat_Spell_Struct
/* 157 */ int effectdescnum; // eqstr of effect description /* 157 */ int effectdescnum; // eqstr of effect description
/* 158 */ //Category Desc ID 3 /* 158 */ //Category Desc ID 3
/* 159 */ //bool npc_no_los; /* 159 */ //bool npc_no_los;
/* 161 */ bool not_reflectable; /* 161 */ bool reflectable;
/* 162 */ int bonushate; /* 162 */ int bonushate;
/* 163 */ /* 163 */
/* 164 */ // for most spells this appears to mimic ResistDiff /* 164 */ // for most spells this appears to mimic ResistDiff

View File

@ -17,4 +17,6 @@ ALTER TABLE `botbuffs` ADD `caston_z` INT(10) NOT NULL DEFAULT '0';
ALTER TABLE `character_buffs` ADD `ExtraDIChance` INT(10) NOT NULL DEFAULT '0'; ALTER TABLE `character_buffs` ADD `ExtraDIChance` INT(10) NOT NULL DEFAULT '0';
ALTER TABLE `merc_buffs` ADD `ExtraDIChance` INT(10) NOT NULL DEFAULT '0'; ALTER TABLE `merc_buffs` ADD `ExtraDIChance` INT(10) NOT NULL DEFAULT '0';
ALTER TABLE `botbuffs` ADD `ExtraDIChance` INT(10) NOT NULL DEFAULT '0'; ALTER TABLE `botbuffs` ADD `ExtraDIChance` INT(10) NOT NULL DEFAULT '0';
ALTER TABLE `spells_new` CHANGE `not_reflectable` `reflectable` INT(11) NOT NULL DEFAULT '0';

View File

@ -4348,7 +4348,7 @@ void Mob::MeleeLifeTap(int32 damage) {
bool Mob::TryReflectSpell(uint32 spell_id) bool Mob::TryReflectSpell(uint32 spell_id)
{ {
if (spells[spell_id].not_reflectable) if (!spells[spell_id].reflectable)
return false; return false;
int chance = itembonuses.reflect_chance + spellbonuses.reflect_chance + aabonuses.reflect_chance; int chance = itembonuses.reflect_chance + spellbonuses.reflect_chance + aabonuses.reflect_chance;