Scripts: Minor improvements to recently migrated scripts
Port From (https://github.com/TrinityCore/TrinityCore/commit/575bcc8c8225420c607e56c507ce837e50759e6a)
This commit is contained in:
@@ -368,6 +368,11 @@ namespace Scripts.Spells.Items
|
|||||||
//Tauntflag
|
//Tauntflag
|
||||||
public const uint TauntFlag = 51657;
|
public const uint TauntFlag = 51657;
|
||||||
|
|
||||||
|
//MirrensDrinkingHat
|
||||||
|
public const uint LochModanLager = 29827;
|
||||||
|
public const uint StouthammerLite = 29828;
|
||||||
|
public const uint AeriePeakPaleAle = 29829;
|
||||||
|
|
||||||
//MindControlCap
|
//MindControlCap
|
||||||
public const uint GnomishMindControlCap = 13181;
|
public const uint GnomishMindControlCap = 13181;
|
||||||
public const uint Dullard = 67809;
|
public const uint Dullard = 67809;
|
||||||
@@ -450,11 +455,6 @@ namespace Scripts.Spells.Items
|
|||||||
public const uint HeartCandy6 = 21823;
|
public const uint HeartCandy6 = 21823;
|
||||||
public const uint HeartCandy7 = 21822;
|
public const uint HeartCandy7 = 21822;
|
||||||
public const uint HeartCandy8 = 21820;
|
public const uint HeartCandy8 = 21820;
|
||||||
|
|
||||||
//MirrensDrinkingHat
|
|
||||||
public const uint LochModanLager = 23584;
|
|
||||||
public const uint StouthammerLite = 23585;
|
|
||||||
public const uint AeriePeakPaleAle = 23586;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct QuestIds
|
struct QuestIds
|
||||||
@@ -3275,24 +3275,28 @@ namespace Scripts.Spells.Items
|
|||||||
{
|
{
|
||||||
void HandleScriptEffect(uint effIndex)
|
void HandleScriptEffect(uint effIndex)
|
||||||
{
|
{
|
||||||
uint itemId = 0;
|
uint spellId = 0;
|
||||||
switch (RandomHelper.URand(1, 6))
|
switch (RandomHelper.URand(1, 6))
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
case 2:
|
case 2:
|
||||||
case 3:
|
case 3:
|
||||||
itemId = ItemIds.LochModanLager;
|
spellId = SpellIds.LochModanLager;
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
case 5:
|
case 5:
|
||||||
itemId = ItemIds.StouthammerLite;
|
spellId = SpellIds.StouthammerLite;
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
itemId = ItemIds.AeriePeakPaleAle;
|
spellId = SpellIds.AeriePeakPaleAle;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (itemId != 0)
|
|
||||||
CreateItem(itemId, ItemContext.None);
|
Unit caster = GetCaster();
|
||||||
|
caster.CastSpell(caster, spellId, new CastSpellExtraArgs(TriggerCastFlags.FullMask)
|
||||||
|
.SetOriginalCastId(GetSpell().m_castId));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Register()
|
public override void Register()
|
||||||
|
|||||||
Reference in New Issue
Block a user