Jump to content

Forusim

Members
  • Posts

    190
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by Forusim

  1. What bug does the patch fix? What features does the patch add?

    Activate detonation when Player have no mana to burn

    For which repository revision was the patch created?

    9690++

    Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

    http://www.scriptdev2.com/project.php?issueid=822

    Who has been writing this patch? Please include either forum user names or email addresses.

    Me with a bit of help of Patman

    Code diff:

    diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp

    index c766522..4f6fe8d 100644

    --- a/src/game/SpellAuras.cpp

    +++ b/src/game/SpellAuras.cpp

    @@ -7333,6 +7333,16 @@ void Aura::PeriodicTick()

    sLog.outDetail("PeriodicTick: %u (TypeId: %u) power leech of %u (TypeId: %u) for %u dmg inflicted by %u",

    GUID_LOPART(GetCasterGUID()), GuidHigh2TypeId(GUID_HIPART(GetCasterGUID())), m_target->GetGUIDLow(), m_target->GetTypeId(), pdamage, GetId());

    + // Mark of Kaz'rogal

    + if (m_spellProto->Id == 31447 && m_target->GetPower(power) < pdamage)

    + {

    + if (m_target && m_target->GetTypeId() == TYPEID_PLAYER && m_target->getPowerType() == POWER_MANA)

    + {

    + m_target->CastSpell(m_target, 31463, true);

    + }

    + m_target->RemoveAura(GetId(), GetEffIndex());

    + }

    +

    int32 drain_amount = m_target->GetPower(power) > pdamage ? pdamage : m_target->GetPower(power);

    // resilience reduce mana draining effect at spell crit damage reduction (added in 2.4)

  2. Try to complie the patch above gived following errors:

    2>..\\..\\src\\game\\QueryHandler.cpp(525) : error C2039: 'PoiId': Ist kein Element von 'QuestPOI'
    2>        d:\\spiele\\mangos testserver\\test\\patch test\\mangos\\src\\game\\ObjectMgr.h(261): Siehe Deklaration von 'QuestPOI'
    2>..\\..\\src\\game\\QueryHandler.cpp(525) : error C2514: 'uint32': Klasse besitzt keine Konstruktoren
    2>        d:\\Spiele\\MANGOS TESTSERVER\\TEST\\patch test\\mangos\\src\\framework\\Platform/Define.h(113): Siehe Deklaration von 'uint32'
    2>..\\..\\src\\game\\QueryHandler.cpp(528) : error C2039: 'AreaId': Ist kein Element von 'QuestPOI'
    2>        d:\\spiele\\mangos testserver\\test\\patch test\\mangos\\src\\game\\ObjectMgr.h(261): Siehe Deklaration von 'QuestPOI'
    2>..\\..\\src\\game\\QueryHandler.cpp(528) : error C2514: 'uint32': Klasse besitzt keine Konstruktoren
    2>        d:\\Spiele\\MANGOS TESTSERVER\\TEST\\patch test\\mangos\\src\\framework\\Platform/Define.h(113): Siehe Deklaration von 'uint32'
    2>..\\..\\src\\game\\QueryHandler.cpp(529) : error C2039: 'FloorId': Ist kein Element von 'QuestPOI'
    2>        d:\\spiele\\mangos testserver\\test\\patch test\\mangos\\src\\game\\ObjectMgr.h(261): Siehe Deklaration von 'QuestPOI'
    2>..\\..\\src\\game\\QueryHandler.cpp(529) : error C2514: 'uint32': Klasse besitzt keine Konstruktoren
    2>        d:\\Spiele\\MANGOS TESTSERVER\\TEST\\patch test\\mangos\\src\\framework\\Platform/Define.h(113): Siehe Deklaration von 'uint32'
    2>..\\..\\src\\game\\ObjectMgr.cpp(6472) : error C2661: 'QuestPOI::QuestPOI': Keine überladene Funktion akzeptiert 7 Argumente
    2>Das Buildprotokoll wurde unter "file://c:\\Users\\Oleg\\Desktop\\patch test\\mangos\\win\\VC90\\game__Win32_Release\\BuildLog.htm" gespeichert.
    2>game - 7 Fehler, 0 Warnung(en)
    ========== Erstellen: 1 erfolgreich, Fehler bei 1, 11 aktuell, 0 übersprungen ==========
    

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