aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortobmaps <spambot42@yandex.ru>2011-08-09 06:14:07 +0700
committertobmaps <spambot42@yandex.ru>2011-08-09 06:14:07 +0700
commit4ce345a9f9ca389f97c914da191552f35420c883 (patch)
tree9a5e6a07c52fa23dd7ec976cfefcf6f1ee4948c4
parente39d19542189dc25378e53f5f4912767a10107f9 (diff)
DB/Loot: Fix max count of items from Titanium Ore prospecting loot
-rw-r--r--sql/updates/world/2011_08_09_00_world_prospecting_loot_template.sql1
-rwxr-xr-xsrc/server/game/Entities/Unit/Unit.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/sql/updates/world/2011_08_09_00_world_prospecting_loot_template.sql b/sql/updates/world/2011_08_09_00_world_prospecting_loot_template.sql
new file mode 100644
index 00000000000..5496b87812d
--- /dev/null
+++ b/sql/updates/world/2011_08_09_00_world_prospecting_loot_template.sql
@@ -0,0 +1 @@
+UPDATE `prospecting_loot_template` SET `maxcount` = 2 WHERE `entry` = 36910;
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index f6c92c33d29..e072a0846d9 100755
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -8559,7 +8559,7 @@ bool Unit::HandleProcTriggerSpell(Unit* victim, uint32 damage, AuraEffect* trigg
case 30885: // Nature's Guardian Rank 4
case 30886: // Nature's Guardian Rank 5
{
- if (GetHealthPct() < 30)
+ if (HealthBelowPct(30))
{
basepoints0 = int32(auraSpellInfo->Effects[EFFECT_0].CalcValue() * GetMaxHealth() / 100.0f);
target = this;