* Merge...
--HG-- branch : trunk
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
-- Usually creature_template changes MUST GO to TDB
|
||||||
|
-- However, this is the one exception ... the GM waypoint
|
||||||
|
-- DO NOT REMOVE THIS FROM CORE REPO this is part of the core :)
|
||||||
|
-- Set Waypoint (Only GM can see it) so health is 1 from levels 1 - 80
|
||||||
|
UPDATE `creature_template` SET `maxlevel`=80,`Health_mod`=0.0125 WHERE `entry`=1;
|
||||||
|
-- Set Waypoint (Only GM can see it) so it can also show altitude
|
||||||
|
UPDATE `creature_template` SET InhabitType=7 WHERE `entry`=1;
|
||||||
@@ -3058,6 +3058,7 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
|
|||||||
{
|
{
|
||||||
wpCreature->SetDisplayId(target->GetDisplayId());
|
wpCreature->SetDisplayId(target->GetDisplayId());
|
||||||
wpCreature->SetFloatValue(OBJECT_FIELD_SCALE_X, 0.5);
|
wpCreature->SetFloatValue(OBJECT_FIELD_SCALE_X, 0.5);
|
||||||
|
wpCreature->SetLevel(point);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while( result->NextRow() );
|
while( result->NextRow() );
|
||||||
|
|||||||
+23
-8
@@ -9847,9 +9847,29 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3
|
|||||||
if (pVictim->GetDiseasesByCaster(owner->GetGUID()) > 0)
|
if (pVictim->GetDiseasesByCaster(owner->GetGUID()) > 0)
|
||||||
DoneTotalMod *= (100.0f + aurEff->GetAmount()) / 100.0f;
|
DoneTotalMod *= (100.0f + aurEff->GetAmount()) / 100.0f;
|
||||||
|
|
||||||
// This is not a typo - Impurity has SPELLFAMILY_DRUID
|
// Impurity (dummy effect)
|
||||||
if (AuraEffect * aurEff = GetDummyAuraEffect(SPELLFAMILY_DRUID, 1986, 0))
|
if (GetTypeId() == TYPEID_PLAYER)
|
||||||
ApCoeffMod *= (100.0f + aurEff->GetAmount()) / 100.0f;
|
{
|
||||||
|
PlayerSpellMap playerSpells = ((Player*)this)->GetSpellMap();
|
||||||
|
for (PlayerSpellMap::const_iterator itr = playerSpells.begin(); itr != playerSpells.end(); ++itr)
|
||||||
|
{
|
||||||
|
if (itr->second->state == PLAYERSPELL_REMOVED || itr->second->disabled)
|
||||||
|
continue;
|
||||||
|
switch (itr->first)
|
||||||
|
{
|
||||||
|
case 49220:
|
||||||
|
case 49633:
|
||||||
|
case 49635:
|
||||||
|
case 49636:
|
||||||
|
case 49638:
|
||||||
|
{
|
||||||
|
if (const SpellEntry *proto=sSpellStore.LookupEntry(itr->first))
|
||||||
|
ApCoeffMod *= (100.0f + proto->CalculateSimpleValue(0)) / 100.0f;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -10815,11 +10835,6 @@ void Unit::MeleeDamageBonus(Unit *pVictim, uint32 *pdamage, WeaponAttackType att
|
|||||||
normalized = true;
|
normalized = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is not a typo - Impurity has SPELLFAMILY_DRUID
|
|
||||||
if (AuraEffect const * aurEff = GetDummyAuraEffect(SPELLFAMILY_DRUID, 1986, 0))
|
|
||||||
APbonus *= (100.0f + aurEff->GetAmount()) / 100.0f;
|
|
||||||
|
|
||||||
DoneFlatBenefit += int32(APbonus/14.0f * GetAPMultiplier(attType,normalized));
|
DoneFlatBenefit += int32(APbonus/14.0f * GetAPMultiplier(attType,normalized));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user