Jump to content

[TALENT] Titan's Grip


Guest Zimon

Recommended Posts

UDB 0.12.0 (390) for MaNGOS 9763 with SD2 SQL for rev. 1677.

http://www.wowhead.com/spell=46917

Allows you to equip two-handed axes, maces and swords in one hand. While you have a two-handed weapon equipped in one hand, your physical damage done is reduced by 10%.

Requires One-Handed Axes, Two-Handed Axes, One-Handed Maces, Two-Handed Maces, One-Handed Swords, Two-Handed Swords, Fist Weapons, Daggers

BUG: works also with polearms and staffs

Link to comment
Share on other sites

possible fix

From 5dcb4da82ac21324f03749c248e4a7b79fcbe7b9 Mon Sep 17 00:00:00 2001
From: Edder <[email protected]>
Date: Fri, 14 May 2010 20:53:36 +0200
Subject: [PATCH 2/2] titan grip patch

Signed-off-by: Edder <[email protected]>
---
src/game/Player.cpp |   23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index d4c8a5d..d9f6176 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -10254,6 +10254,13 @@ uint8 Player::CanEquipItem( uint8 slot, uint16 &dest, Item *pItem, bool swap, bo
                {
                    if (!CanDualWield() || !CanTitanGrip())
                        return EQUIP_ERR_CANT_DUAL_WIELD;
+
+                    if (CanTitanGrip())
+                    {
+                        //                      polearm                       staff
+                        if (pItem->GetSpell() == 200 || pItem->GetSpell() == 227)
+                            return EQUIP_ERR_ITEM_CANT_BE_EQUIPPED;
+                    }
                }

                if (IsTwoHandUsed())
@@ -10267,7 +10274,23 @@ uint8 Player::CanEquipItem( uint8 slot, uint16 &dest, Item *pItem, bool swap, bo
                {
                    if (!CanTitanGrip())
                        return EQUIP_ERR_ITEM_CANT_BE_EQUIPPED;
+    
+                    if (CanTitanGrip())
+                    {
+                        //                      polearm                       staff
+                        if (pItem->GetSpell() == 200 || pItem->GetSpell() == 227)
+                            return EQUIP_ERR_ITEM_CANT_BE_EQUIPPED;
+                    }
                }
+                else if (eslot == EQUIPMENT_SLOT_MAINHAND)
+                {
+                    if (CanTitanGrip())
+                    {
+                        //                      polearm                       staff
+                        if (pItem->GetSpell() == 200 || pItem->GetSpell() == 227)
+                            return EQUIP_ERR_ITEM_CANT_BE_EQUIPPED;
+                    }
+                }
                else if (eslot != EQUIPMENT_SLOT_MAINHAND)
                    return EQUIP_ERR_ITEM_CANT_BE_EQUIPPED;

-- 
1.7.0.2.msysgit.0

hm, codehighliting disabled?!

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use