diff options
author | megamage <none@none> | 2009-01-30 19:26:53 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-30 19:26:53 -0600 |
commit | 2096e645fe7a58a1a92f293bceb91aaa23aa1e5d (patch) | |
tree | 9543307673352f7407fc08586e1c20e9939597d7 /src | |
parent | 1707d1e5aec42d521eb986520a93a008e1c1fce0 (diff) |
*Update to Mangos 7205.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/ObjectMgr.cpp | 6 | ||||
-rw-r--r-- | src/game/QuestDef.cpp | 13 | ||||
-rw-r--r-- | src/game/SpellMgr.cpp | 10 | ||||
-rw-r--r-- | src/game/Unit.cpp | 8 | ||||
-rw-r--r-- | src/shared/revision_nr.h | 2 |
5 files changed, 14 insertions, 25 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 4a5c0bbdf0b..898299dc076 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -5513,11 +5513,6 @@ void ObjectMgr::SetHighestGuids() delete result; } - // pet guids are not saved to DB, set to 0 (pet guid != pet id) - m_hiPetGuid = 0; - // same for vehicles - m_hiVehicleGuid = 0; - result = CharacterDatabase.Query( "SELECT MAX(guid) FROM item_instance" ); if( result ) { @@ -5671,7 +5666,6 @@ uint32 ObjectMgr::GenerateLowGuid(HighGuid guidhigh) } return m_hiPetGuid++; case HIGHGUID_VEHICLE: - ++m_hiVehicleGuid; if(m_hiVehicleGuid>=0x00FFFFFF) { sLog.outError("Vehicle guid overflow!! Can't continue, shutting down server. "); diff --git a/src/game/QuestDef.cpp b/src/game/QuestDef.cpp index e56a3a4c982..42ff15e1679 100644 --- a/src/game/QuestDef.cpp +++ b/src/game/QuestDef.cpp @@ -166,18 +166,19 @@ uint32 Quest::XPValue( Player *pPlayer ) const uint32 pLevel = pPlayer->getLevel(); uint32 qLevel = QuestLevel; float fullxp = 0; - if (qLevel >= 65) + if (qLevel >= 75) fullxp = RewMoneyMaxLevel / 6.0f; - else if (qLevel == 64) + else if (qLevel == 74) fullxp = RewMoneyMaxLevel / 4.8f; - else if (qLevel == 63) + else if (qLevel == 73) fullxp = RewMoneyMaxLevel / 3.6f; - else if (qLevel == 62) + else if (qLevel == 72) fullxp = RewMoneyMaxLevel / 2.4f; - else if (qLevel == 61) + else if (qLevel == 71) fullxp = RewMoneyMaxLevel / 1.2f; - else if (qLevel > 0 && qLevel <= 60) + else if (qLevel > 0 && qLevel <= 70) fullxp = RewMoneyMaxLevel / 0.6f; + // FIXME: for <=65 need possible additional cases if( pLevel <= qLevel + 5 ) return (uint32)fullxp; diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 3172a47ca38..39ed6f6b77d 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -346,8 +346,8 @@ SpellSpecific GetSpellSpecific(uint32 spellId) if (spellInfo->Dispel == DISPEL_CURSE) return SPELL_CURSE; - // family flag 37 (only part spells have family name) - if (spellInfo->SpellFamilyFlags & 0x2000000000LL) + // Warlock (Demon Armor | Demon Skin | Fel Armor) + if (spellInfo->SpellFamilyFlags & 0x2000002000000000LL || spellInfo->SpellFamilyFlags2 & 0x00000010) return SPELL_WARLOCK_ARMOR; //seed of corruption and corruption @@ -406,12 +406,6 @@ SpellSpecific GetSpellSpecific(uint32 spellId) break; } - // only warlock armor/skin have this (in additional to family cases) - if( spellInfo->SpellVisual[0] == 130 && spellInfo->SpellIconID == 89) - { - return SPELL_WARLOCK_ARMOR; - } - // elixirs can have different families, but potion most ofc. if(SpellSpecific sp = spellmgr.GetSpellElixirSpecific(spellInfo->Id)) return sp; diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index f47eb78bbf7..e6497e13505 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -8040,7 +8040,7 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3 break; } } - int DotTicks = 6; + int32 DotTicks = 6; if(spellProto->EffectAmplitude[x] != 0) DotTicks = DotDuration / spellProto->EffectAmplitude[x]; if(DotTicks) @@ -8524,13 +8524,13 @@ uint32 Unit::SpellHealingBonus(Unit *pVictim, SpellEntry const *spellProto, uint break; } } - int DotTicks = 6; + int32 DotTicks = 6; if(spellProto->EffectAmplitude[x] != 0) DotTicks = DotDuration / spellProto->EffectAmplitude[x]; if(DotTicks) { - DoneAdvertisedBenefit /= DotTicks; - TakenAdvertisedBenefit /= DotTicks; + DoneAdvertisedBenefit /= DotTicks*int32(stack); + TakenAdvertisedBenefit /= DotTicks*int32(stack); } } } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index d542e8dd61d..760e6b5108b 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7200" + #define REVISION_NR "7205" #endif // __REVISION_NR_H__ |