Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

From d85316e8d2e60481fa6d5e1ebf9525aad1be2bef Mon Sep 17 00:00:00 2001
From: pasdVn <pasdVn3@gmx.de>
Date: Fri, 2 Oct 2009 18:48:00 +0200
Subject: [PATCH 1/6] reworked pet stats and dynamic stat scaling
* added mindmg and maxdmg field to pet_levelstats
* cleanup in Pet::InitStatsForLevel()
* apply bonuses for pets without scaling aura only static - at summon
-> added ap bonus for "shadow fiend" (34433)
-> added bonuses and glyph modification (63271)
ALTER TABLE `pet_levelstats` ADD `mindmg` SMALLINT UNSIGNED NOT NULL AFTER `armor` ,
ADD `maxdmg` SMALLINT UNSIGNED NOT NULL AFTER `mindmg` ;
UPDATE `pet_levelstats`
SET mindmg = level - (level/4), maxdmg = level + (level/4);
/* Hunter Pet Stats*/
DELETE FROM `pet_levelstats` WHERE
`creature_entry` = 1 AND
(`level` BETWEEN '5' AND '20' OR
From 2fd3411348b7f8f4efd22fe06133c1185db32fd8 Mon Sep 17 00:00:00 2001
From: pasdVn <pasdVn3@gmx.de>
Date: Wed, 24 Mar 2010 17:23:36 +0100
Subject: [PATCH 2/6] workaround: pet scaling aura health/mana update
scale health/mana proportional when (re)applying pet scaling auras (stamina/intellect)
---
src/game/SpellAuras.cpp | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
From 643e49fa788c43be00e5a3a9495d46bfd5b8f3a7 Mon Sep 17 00:00:00 2001
From: pasdVn <pasdVn3@gmx.de>
Date: Fri, 2 Oct 2009 20:36:48 +0200
Subject: [PATCH 3/6] fixed hunter pet happiness damage mod
* the damage modifier will also be applied to damage from spells now
* additionally added the creature-rank based pct bonus damge for
not-weapon-based-spells to Unit::MeleeDamageBonus()
---
src/game/Pet.cpp | 23 +++++++++++++++++++++++
From 916f528ad7ea228c6601b69d52de085cec819db3 Mon Sep 17 00:00:00 2001
From: pasdVn <pasdVn3@gmx.de>
Date: Fri, 9 Oct 2009 13:39:40 +0200
Subject: [PATCH 5/6] fixed custom hp/sta and mana/int scaling of some pets
original patch by Corfen, scaling factors by nesocips
TODO: verify scaling factors and add scaling of dk ghoul
---
src/game/StatSystem.cpp | 30 +++++++++++++++++++++++++++---
1 files changed, 27 insertions(+), 3 deletions(-)
From 7a2b1712ec9d4829a855bd7ff0f6b7aee3fc58e4 Mon Sep 17 00:00:00 2001
From: pasdVn <pasdVn3@gmx.de>
Date: Wed, 24 Feb 2010 13:05:06 +0100
Subject: [PATCH 4/6] implemented spell penetration benefit of pets from their owner
---
src/game/Unit.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
From bc01931e5f2bd3dfeebd6a8ec69c7da87a600ba3 Mon Sep 17 00:00:00 2001
From: pasdVn <pasdVn3@gmx.de>
Date: Sat, 12 Jun 2010 10:19:09 +0200
Subject: [PATCH 6/6] Fixed problem with pet scaling aura update.
Pet talent 62758 & rank.
---
src/game/SpellEffects.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
#!/bin/bash
# Configuration of databases
realmdb='realmd'
mangosdb='mangos'
chardb='characters'
sd2db='scriptdev2'
#Configuration of mysql users
mysqluser_mangos='mangos'
@@ -791,8 +791,8 @@ void Spell::prepareDataForTriggerSystem()
m_canTrigger = true;
break;
case SPELLFAMILY_PRIEST:
- // For Penance,Mind Sear,Mind Flay heal/damage triggers need do it
- if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0001800000800000) || (m_spellInfo->SpellFamilyFlags2 & 0x00000040))
+ // For Penance,Mind Sear,Mind Flay, Empowered Renew heal/damage triggers need do it
+ if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0001800000800000) || (m_spellInfo->SpellFamilyFlags2 & 0x00001040))
m_canTrigger = true;
break;
/*
Hunter Pets
-------------
*/
-- levelstats, values are nearly 100% correct (only lvl 70 interpolated)
DELETE FROM `pet_levelstats` WHERE
`creature_entry` = 1 AND
(`level` BETWEEN '5' AND '20' OR
`level` IN ('23','24', '25', '27', '46', '47', '48', '49', '51') OR
`level`BETWEEN '70' AND '76');