Neuron

Neuron

98.2k Downloads

Dark iron paladin mount not dragging to action bar

Trajin opened this issue · 16 comments

commented

I just created a dark iron paladin and was unable to drag the paladin mount to the action bar. I even tried to macro it and that didn't work either. I don't get any errors, it just doesn't work. It only happens with this mount. Other mounts and paladin mounts drag and work normally. The name of the mount is Darkforge Ram

commented

Hrm.... Interesting. When you drag it does it attempt to write a macro for it?

commented

I editted the button and checked. It looks like it's creating the macro and checking the box for mount. There isn't an icon and clicking the button doesn't do anything.
Edit: Tried creating a new bar and dragging the mount to it. It creates the macro, but doesn't put the check in the mount checkbox. The icon is the question mark icon. Logging back into the game, the question mark icon appears on the other bar where I drug the mount there originally.

commented

I figured out the problem. I turned off all the addons and drug the Darkforge Ram icon to the blizzard action bar and then moused over it. It says Summon Darkforge Ram. So I went back to the neuron button and edited the macro to include the word summon and that fixed the problem. Don't know why blizzard did this one mount this way.

commented

Ugh, wtf Blizz. I can add in a hard coded check for this mount, but I hate adding in 1 off hacks like that

commented
commented
commented
commented

Does /summon work for all mounts? Right now I think we use /cast for mounts, but maybe we should use a new syntax for our macros

commented

FYI - /summon doesn't seem to work for mounts at all in limited testing, either in a macro or just trying to type it in manually.

commented
commented

Is this still an issue? Has it been fixed? I was kinda hoping it would just sort itself out

commented
commented
commented

I suggest to add a few exceptions for these special types of mounts. They also behave differently in that they have to be /cast by protected button and can't be summoned by addon. Similar to druid travel form or running wild which are also spells. Or maybe there is some way to detect the spell name for the dragged ability correctly.

/cast Summon Chauffeur (replace /cast Chauffeured Mekgineer's Chopper)
/cast Summon Charger (replace /cast Charger)
/cast Summon Warhorse
/cast Summon Darkforge Ram (/cast Darkforge Ram)
Different paladin mounts

commented

You could also use the API function that returns the correct spellID.

https://wow.gamepedia.com/API_C_MountJournal.GetMountInfoByID

spellID
number - The ID of the spell that summons the mount.

commented

Adding this line at 385 in "Neuron\Objects\ACTIONBUTTON_DragAndDrop.lua" fixes the issue for me:

	local mountSpellName = GetSpellInfo(mountSpellID) -- the journal name is not always the same as the spell name (paladin mount and chauffeured mount)
	self.data.macro_Text = "#autowrite\n/cast "..mountSpellName..";"