*Update to Mangos 7205.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-01-30 19:26:53 -06:00
parent 1707d1e5ae
commit 2096e645fe
6 changed files with 15 additions and 49 deletions
-6
View File
@@ -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. ");
+7 -6
View File
@@ -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;
+2 -8
View File
@@ -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;
+4 -4
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7200"
#define REVISION_NR "7205"
#endif // __REVISION_NR_H__