*Blizzlike calculation of skill required to cast judgement-like spells.
--HG-- branch : trunk
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
DELETE FROM spell_script_target WHERE targetentry IN (8313,38968,21934);
|
||||||
|
DELETE FROM spell_proc_event WHERE entry in (19615);
|
||||||
|
|
||||||
|
UPDATE creature_template SET spell2 = 0 WHERE entry IN (16474,30000);
|
||||||
|
UPDATE gameobject_template SET scriptname = 'go_najentus_spine' WHERE entry = 185584;
|
||||||
|
UPDATE gameobject_template SET scriptname = 'go_bridge_console' WHERE entry = 184568;
|
||||||
+7
-1
@@ -2799,8 +2799,14 @@ SpellMissInfo Unit::MeleeSpellHitResult(Unit *pVictim, SpellEntry const *spell)
|
|||||||
if (spell->DmgClass == SPELL_DAMAGE_CLASS_RANGED && IsRangedWeaponSpell(spell))
|
if (spell->DmgClass == SPELL_DAMAGE_CLASS_RANGED && IsRangedWeaponSpell(spell))
|
||||||
attType = RANGED_ATTACK;
|
attType = RANGED_ATTACK;
|
||||||
|
|
||||||
|
int32 attackerWeaponSkill;
|
||||||
|
// skill value for these spells (for example judgements) is 5* level
|
||||||
|
if (spell->DmgClass == SPELL_DAMAGE_CLASS_RANGED && !IsRangedWeaponSpell(spell))
|
||||||
|
attackerWeaponSkill = getLevel() * 5;
|
||||||
// bonus from skills is 0.04% per skill Diff
|
// bonus from skills is 0.04% per skill Diff
|
||||||
int32 attackerWeaponSkill = int32(GetWeaponSkillValue(attType,pVictim));
|
else
|
||||||
|
attackerWeaponSkill = int32(GetWeaponSkillValue(attType,pVictim));
|
||||||
|
|
||||||
int32 skillDiff = attackerWeaponSkill - int32(pVictim->GetMaxSkillValueForLevel(this));
|
int32 skillDiff = attackerWeaponSkill - int32(pVictim->GetMaxSkillValueForLevel(this));
|
||||||
int32 fullSkillDiff = attackerWeaponSkill - int32(pVictim->GetDefenseSkillValue(this));
|
int32 fullSkillDiff = attackerWeaponSkill - int32(pVictim->GetDefenseSkillValue(this));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user