Lavi
Members-
Posts
4 -
Joined
-
Last visited
Never -
Donations
0.00 GBP
Content Type
Profiles
Bug Tracker
Wiki
Release Notes
Forums
Downloads
Blogs
Events
Everything posted by Lavi
-
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 40019f6..1f8cfd9 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -7266,6 +7266,53 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu spell->AddTriggeredSpell(63685); return true; } + // Flametongue Weapon + if (dummySpell->SpellFamilyFlags & UI64LIT(0x200000)) + { + //checks + if(GetTypeId()!=TYPEID_PLAYER) + return false; + + if(!castItem || !castItem->IsEquipped()) + return false; + + if(!pVictim || !pVictim->isAlive()) + return false; + + float fonhit = dummySpell->EffectBasePoints[EFFECT_INDEX_0] / 100.0; + + float addspd = SpellBaseDamageBonus(SPELL_SCHOOL_MASK_FIRE) + + SpellBaseDamageBonusForVictim(SPELL_SCHOOL_MASK_FIRE, pVictim); + + // 1.3speed = 5%, 2.6speed = 10%, 4.0 speed = 15%, so, 1.0speed = 3.84% + addspd= addspd / 100.0 * 3.84; + + // Enchant on Off-Hand + if ( castItem->GetSlot() == EQUIPMENT_SLOT_OFFHAND && isAttackReady(OFF_ATTACK)) + { + float WeaponSpeed = GetAttackTime(OFF_ATTACK)/1000.0; + + //tooltip + spd + basepoints0 = int32( (fonhit * WeaponSpeed) + (addspd * WeaponSpeed) ); + triggered_spell_id = 10444; + } + + // Enchant on Main-Hand + else if ( castItem->GetSlot() == EQUIPMENT_SLOT_MAINHAND && isAttackReady(BASE_ATTACK)) + { + float WeaponSpeed = GetAttackTime(BASE_ATTACK)/1000.0; + + //tooltip damage + spd + basepoints0 = int32( (fonhit * WeaponSpeed) + (addspd * WeaponSpeed) ); + triggered_spell_id = 10444; + } + + else + return false; + + CastCustomSpell(pVictim,triggered_spell_id,&basepoints0,NULL,NULL,true,castItem,triggeredByAura); + return true; + } break; } case SPELLFAMILY_DEATHKNIGHT: author Viste from ru-mangos
-
with this commit http://github.com/mangos/mangos/commit/b9712d36d2c285be14cf7bb9bd5cc1f4c9c58cf3 error on linux ../../../src/game/BattleGround.h:302: error: Б─≤BattleGroundBracketIdБ─≥ does not name a type ../../../src/game/BattleGround.h:574: error: Б─≤BattleGroundBracketIdБ─≥ does not name a type ../../../src/game/ObjectMgr.h: In member function Б─≤uint32 ObjectMgr::GetSeatFlags(uint32)Б─≥: ../../../src/game/ObjectMgr.h:897: warning: converting to non-pointer type Б─≤uint32Б─≥ from NULL make[3]: *** [battleGroundDS.o] Error 1 make[3]: Leaving directory `/opt/mangos/objdir/src/game' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/mangos/objdir/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/mangos/objdir' make: *** [all] Error 2
-
Does anyone have vehicle.patch for this repo http://github.com/insider42/mangos/commits/
-
someone have this patch for 8840 ?
Contact Us
To contact us
click here
You can also email us at [email protected]
Privacy Policy | Terms & Conditions
You can also email us at [email protected]
Privacy Policy | Terms & Conditions
Copyright © getMaNGOS. All rights Reserved.
This website is in no way associated with or endorsed by Blizzard Entertainment®
This website is in no way associated with or endorsed by Blizzard Entertainment®