Jump to content

kich0

Members
  • Posts

    144
  • Joined

  • Last visited

  • Donations

    0.00 GBP 

Posts posted by kich0

  1. I am using this fix

    Player.cpp @@ -8379,7 +8385,7 @@ uint8 Player::FindEquipSlot( ItemPrototype const* proto, uint32 slot, bool swap
                break;
            case INVTYPE_2HWEAPON:
                slots[0] = EQUIPMENT_SLOT_MAINHAND;
    -            if (CanDualWield() && CanTitanGrip())
    +            if (CanDualWield() && CanTitanGrip() && proto && proto->SubClass != ITEM_SUBCLASS_WEAPON_POLEARM && proto->SubClass != ITEM_SUBCLASS_WEAPON_STAFF)
                    slots[1] = EQUIPMENT_SLOT_OFFHAND;
                break;
            case INVTYPE_TABARD:
    

    Player.h
    @@ -1933,7 +1933,15 @@ class MANGOS_DLL_SPEC Player : public Unit
            void SetCanBlock(bool value);
            bool CanDualWield() const { return m_canDualWield; }
            void SetCanDualWield(bool value) { m_canDualWield = value; }
    -        bool CanTitanGrip() const { return m_canTitanGrip; }
    +        bool CanTitanGrip() const
    +        {
    +            Item *mainItem = GetItemByPos( INVENTORY_SLOT_BAG_0, EQUIPMENT_SLOT_MAINHAND );
    +
    +            if (mainItem && ( mainItem->GetProto()->SubClass == ITEM_SUBCLASS_WEAPON_POLEARM || mainItem->GetProto()->SubClass == ITEM_SUBCLASS_WEAPON_STAFF ))
    +                return false;
    +
    +            return m_canTitanGrip ; 
    +        }
            void SetCanTitanGrip(bool value) { m_canTitanGrip = value; }
    

  2. maybe something like this would do the thing?

    diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
    index 4aa95a5..11a8cac 100644
    --- a/src/game/SpellEffects.cpp
    +++ b/src/game/SpellEffects.cpp
    @@ -6532,8 +6532,8 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
                        }
    
                        // check if "Glyph of Raise Dead" ,corpse- or "Corpse Dust" is available
    -                    bool canCast = p_caster->CanNoReagentCast(m_spellInfo) || FindCorpseUsing<MaNGOS::RaiseDeadObjectCheck>();
    +                    bool canCast =  p_caster->CanNoReagentCast(m_spellInfo) || unitTarget->isDead() && unitTarget->GetCreatureType()==CREATURE_TYPE_HUMANOID;
                        if (!canCast && p_caster->HasItemCount(37201,1))
                        {
                            p_caster->DestroyItemCount(37201, 1, true);
                            canCast = true;
    diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
    index b04cf54..46ea551 100644
    --- a/src/game/Spell.cpp
    +++ b/src/game/Spell.cpp
    @@ -463,9 +463,6 @@ WorldObject* Spell::FindCorpseUsing()
        return result;
    }
    
    -// explicitly instantiate for use in SpellEffects.cpp
    -template WorldObject* Spell::FindCorpseUsing<MaNGOS::RaiseDeadObjectCheck>();
    -
    void Spell::FillTargetMap()
    {
        // TODO: ADD the correct target FILLS!!!!!!
    

  3. spelleffects.cpp

    @@ -2499,6 +2500,10 @@ void Spell::EffectTriggerSpell(SpellEffectIndex effIndex)

    caster = IsSpellWithCasterSourceTargetsOnly(spellInfo) ? unitTarget : m_caster;

    caster = IsSpellWithCasterSourceTargetsOnly(spellInfo) ? unitTarget : m_caster;

    }

    + if (m_caster->GetTypeId() == TYPEID_PLAYER && m_spellInfo->CategoryRecoveryTime && spellInfo->CategoryRecoveryTime

    + && m_spellInfo->Category == spellInfo->Category)

    + ((Player*)m_caster)->RemoveSpellCooldown(spellInfo->Id);

    +

    caster->CastSpell(unitTarget,spellInfo,true,NULL,NULL,m_originalCasterGUID);

    }

  4. Hello. Does " ERROR:Error in instance_template table, probably sql file format was updated (there should be 9 fields in sql)." mean that I have a mismatch between my MaNGOS version and database version?

    I'm using MaNGOS/0.15.0-DEV Revision 8866 and UDB 11.6 Core 8734 (with updates applied). Thanks.

    that means that your DB is for revision 8734 and you are using core revision 8866 - you have to apply all sql updates between 8734 and 8866 (take a look at you SQL folder)

×
×
  • 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