Skip to content

Commit

Permalink
Scripts/Scarlet Enclave: Fix model for scarlet mine cart.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelima committed Mar 8, 2011
1 parent 8340e5e commit 00f2ded
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -887,7 +887,7 @@ class npc_scarlet_miner_cart : public CreatureScript
npc_scarlet_miner_cartAI(Creature *c) : PassiveAI(c), minerGUID(0)
{
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
me->SetDisplayId(me->GetCreatureInfo()->Modelid2); // Modelid1 is a horse.
me->SetDisplayId(me->GetCreatureInfo()->Modelid1); // Modelid2 is a horse.
}

uint64 minerGUID;
Expand Down

3 comments on commit 00f2ded

@kaelima
Copy link
Contributor

@kaelima kaelima commented on 00f2ded Mar 8, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should look more like a mining cart now :)

@Machiavell1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woudln't this make the entire SetDisplayId call redundant, since Modelid1 is default?

@kaelima
Copy link
Contributor

@kaelima kaelima commented on 00f2ded Mar 8, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Afaik the modelid is randomly chosen if the creature has more then one valid modelid in creature_template.

Please sign in to comment.