Show
Ignore:
Timestamp:
11/22/08 00:35:41 (17 years ago)
Author:
yumileroy
Message:

Delete possessed AI only on creature delete.

Original author: gvcoman
Date: 2008-11-16 14:38:02-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/shared/Database/DBCStores.cpp

    r260 r272  
    1111 * This program is distributed in the hope that it will be useful, 
    1212 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
    1414 * GNU General Public License for more details. 
    1515 * 
    1616 * You should have received a copy of the GNU General Public License 
    1717 * along with this program; if not, write to the Free Software 
    18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
     18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
    1919 */ 
    2020 
     
    122122// DBC used only for initialization sTaxiPathSetBySource at startup. 
    123123TaxiPathNodesByPath sTaxiPathNodesByPath; 
    124  
     124struct TaxiPathNodeEntry 
     125{ 
     126    uint32    path; 
     127    uint32    index; 
     128    uint32    mapid; 
     129    float     x; 
     130    float     y; 
     131    float     z; 
     132    uint32    actionFlag; 
     133    uint32    delay; 
     134}; 
    125135static DBCStorage <TaxiPathNodeEntry> sTaxiPathNodeStore(TaxiPathNodeEntryfmt); 
     136 
    126137DBCStorage <TotemCategoryEntry> sTotemCategoryStore(TotemCategoryEntryfmt); 
     138 
    127139DBCStorage <WorldMapAreaEntry>  sWorldMapAreaStore(WorldMapAreaEntryfmt); 
    128140DBCStorage <WorldSafeLocsEntry> sWorldSafeLocsStore(WorldSafeLocsEntryfmt); 
     
    224236        } 
    225237    } 
    226  
     238     
    227239    LoadDBC(availableDbcLocales,bar,bad_dbc_files,sFactionTemplateStore,     dbcPath,"FactionTemplate.dbc"); 
    228240    LoadDBC(availableDbcLocales,bar,bad_dbc_files,sGemPropertiesStore,       dbcPath,"GemProperties.dbc"); 
     
    272284    { 
    273285        SkillLineAbilityEntry const *skillLine = sSkillLineAbilityStore.LookupEntry(j); 
    274  
     286     
    275287        if(!skillLine) 
    276288            continue; 
     
    279291 
    280292        if(spellInfo && (spellInfo->Attributes & 0x1D0) == 0x1D0) 
    281         { 
     293        {       
    282294            for (unsigned int i = 1; i < sCreatureFamilyStore.GetNumRows(); ++i) 
    283295            { 
     
    286298                    continue; 
    287299 
    288                 if(skillLine->skillId != cFamily->skillLine[0] && skillLine->skillId != cFamily->skillLine[1]) 
     300                if(skillLine->skillId != cFamily->skillLine && skillLine->skillId != cFamily->skillLine2) 
    289301                    continue; 
    290302 
     
    298310    LoadDBC(availableDbcLocales,bar,bad_dbc_files,sSpellFocusObjectStore,    dbcPath,"SpellFocusObject.dbc"); 
    299311    LoadDBC(availableDbcLocales,bar,bad_dbc_files,sSpellItemEnchantmentStore,dbcPath,"SpellItemEnchantment.dbc"); 
     312     
    300313    LoadDBC(availableDbcLocales,bar,bad_dbc_files,sSpellItemEnchantmentConditionStore,dbcPath,"SpellItemEnchantmentCondition.dbc"); 
    301314    LoadDBC(availableDbcLocales,bar,bad_dbc_files,sSpellRadiusStore,         dbcPath,"SpellRadius.dbc"); 
     
    443456    // check at up-to-date DBC files (71 is last char title added in 2.4.3) 
    444457    // check at up-to-date DBC files (1768 is last area added in 2.4.3) 
    445     if( !sSpellStore.LookupEntry(53085)            || 
    446         !sSkillLineAbilityStore.LookupEntry(17514) || 
     458    if( !sSpellStore.LookupEntry(53085)            ||  
     459        !sSkillLineAbilityStore.LookupEntry(17514) ||  
    447460        !sMapStore.LookupEntry(598)                || 
    448         !sGemPropertiesStore.LookupEntry(1127)     || 
    449         !sItemExtendedCostStore.LookupEntry(2425)  || 
     461        !sGemPropertiesStore.LookupEntry(1127)     ||  
     462        !sItemExtendedCostStore.LookupEntry(2425)  ||  
    450463        !sCharTitlesStore.LookupEntry(71)          || 
    451464        !sAreaStore.LookupEntry(1768)              )